1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Explicitly compare to COLOR_MODE_MONO where appropriate.

This commit is contained in:
Kalle Olavi Niemitalo 2006-12-25 10:27:23 +02:00 committed by Kalle Olavi Niemitalo
parent bad1b588dd
commit b4359e0445
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,8 @@ get_bfu_color(struct terminal *term, unsigned char *stylename)
struct option *opt;
/* Construct the color entry. */
opt = get_opt_rec_real(config_options, color_mode
opt = get_opt_rec_real(config_options,
color_mode != COLOR_MODE_MONO
? "ui.colors.color" : "ui.colors.mono");
if (!opt) return NULL;

View File

@ -983,7 +983,7 @@ redraw_screen(struct terminal *term)
}
if (image.length) {
if (driver->color_mode)
if (driver->color_mode != COLOR_MODE_MONO)
add_bytes_to_string(&image, "\033[37;40m", 8);
add_bytes_to_string(&image, "\033[0m", 4);