mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
& 15 for foreground.
This commit is contained in:
parent
17f82a3e21
commit
2ff9f1a76f
@ -255,7 +255,7 @@ decode_esc_color(unsigned char *text, int *line_pos, int width,
|
|||||||
get_screen_char_color(template, &color, 0, mode);
|
get_screen_char_color(template, &color, 0, mode);
|
||||||
set_term_color(&ch, &color, 0, COLOR_MODE_16);
|
set_term_color(&ch, &color, 0, COLOR_MODE_16);
|
||||||
b1 = background = (ch.color[0] >> 4) & 7;
|
b1 = background = (ch.color[0] >> 4) & 7;
|
||||||
f1 = foreground = ch.color[0] & 7;
|
f1 = foreground = ch.color[0] & 15;
|
||||||
|
|
||||||
while (tail < end) {
|
while (tail < end) {
|
||||||
unsigned char kod = (unsigned char)strtol(begin, &tail, 10);
|
unsigned char kod = (unsigned char)strtol(begin, &tail, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user