-
Notifications
You must be signed in to change notification settings - Fork 261
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
bright colors support #1083
Comments
I have not properly dug the code but by trying numbers instead of string colors, I manage to have bright versions. Such as:
|
@lobre i'm glad you managed to find a way! but, it doesn't seem to do anything on my end.. (Nevermind, i'm just colorblind.) this is why it works: /*
* Color definitions (ANSI color numbers)
*/
#define COLOR_BLACK 0x00
#define COLOR_RED 0x01
#define COLOR_GREEN 0x02
#define COLOR_YELLOW 0x03
#define COLOR_BLUE 0x04
#define COLOR_MAGENTA 0x05
#define COLOR_CYAN 0x06
#define COLOR_WHITE 0x07 vis: #define CELL_COLOR_BLACK COLOR_BLACK
#define CELL_COLOR_RED COLOR_RED
#define CELL_COLOR_GREEN COLOR_GREEN
#define CELL_COLOR_YELLOW COLOR_YELLOW
#define CELL_COLOR_BLUE COLOR_BLUE
#define CELL_COLOR_MAGENTA COLOR_MAGENTA
#define CELL_COLOR_CYAN COLOR_CYAN
#define CELL_COLOR_WHITE COLOR_WHITE
#define CELL_COLOR_DEFAULT (-1) |
I am not sure I get your point. Can you please explain why you think it works? I don't see any bright definitions in the code you posted. |
vis (or ncurses to be specific) only has the default normal colors although ncurses itself has no bright color support it seems.. |
i've been trying to implement this into vis myself, but as i'm unfamiliar with C, i was not able to.
to put it simply, the current color indexes are 30 (fg) and 40 (bg); there should be a style mode (similar to
bold
) that simply adds60
to these values, making them bright colored.ncurses does this a bit differently unfortunately..
https://en.wikipedia.org/wiki/ANSI_escape_code
The text was updated successfully, but these errors were encountered: