From b4359e0445161133959bc2712cc0311af431cab7 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 25 Dec 2006 10:27:23 +0200 Subject: [PATCH] Explicitly compare to COLOR_MODE_MONO where appropriate. --- src/bfu/style.c | 3 ++- src/terminal/screen.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bfu/style.c b/src/bfu/style.c index 8e8b5bda4..cb7bdcffe 100644 --- a/src/bfu/style.c +++ b/src/bfu/style.c @@ -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; diff --git a/src/terminal/screen.c b/src/terminal/screen.c index 1f5e0ca0a..f4e2d56aa 100644 --- a/src/terminal/screen.c +++ b/src/terminal/screen.c @@ -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);