1
0
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:
Witold Filipczyk 2010-07-31 20:58:11 +02:00 committed by Witold Filipczyk
parent 17f82a3e21
commit 2ff9f1a76f

View File

@ -255,7 +255,7 @@ decode_esc_color(unsigned char *text, int *line_pos, int width,
get_screen_char_color(template, &color, 0, mode);
set_term_color(&ch, &color, 0, COLOR_MODE_16);
b1 = background = (ch.color[0] >> 4) & 7;
f1 = foreground = ch.color[0] & 7;
f1 = foreground = ch.color[0] & 15;
while (tail < end) {
unsigned char kod = (unsigned char)strtol(begin, &tail, 10);