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:
parent
bad1b588dd
commit
b4359e0445
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user