Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 256(or 24bit) Color Schemes #392

Open
zadjii opened this issue Apr 28, 2017 · 1 comment
Open

Support 256(or 24bit) Color Schemes #392

zadjii opened this issue Apr 28, 2017 · 1 comment

Comments

@zadjii
Copy link

zadjii commented Apr 28, 2017

Unless I'm mistaken, there doesn't appear to be a way to use full RGB color (or 256-color) for customizing the appearance. For terminals that support it (most all nowadays), this would allow for even more customization beyond just the 16 ANSI colors.

It looks like the only supported styles now are

; Available styles:
; bold, underline, blink, inverse, invisible, (light)black, (light)red,
; (light)green, (light)yellow, (light)blue, (light)magenta, (light)cyan,
; (light)white

Perhaps {xterm-0-fg} - {xterm-255-bg} for indexing into the 256 color table, or something like {rgb-255,255,255-fg} for full RGB?

@dbkaplun
Copy link
Member

dbkaplun commented May 1, 2017

You should be able to use 256 colors using hex values: https://github.com/chjj/blessed#colors

The hex values will be coalesced to the closest color that the terminal supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants