diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-11-25 14:09:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-25 16:28:34 -0500 |
commit | c154348f00834911c49aa63dfb48bd50d1a07d93 (patch) | |
tree | b0623769f5ee252168af0cec1eff756c8f7f36eb /scripts/kconfig | |
parent | f12aa7045280836307e9bbdb1c676c4a94e2b3d3 (diff) |
[PATCH] fix menuconfig colours with TERM=vt100
On Mon, 13 Nov 2006, Phil Oester wrote:
> In commit 350b5b76384e77bcc58217f00455fdbec5cac594, the default menuconfig
> color scheme was changed to bluetitle. This breaks the highlighting
> of the selected item for me with TERM=vt100. The only way I can see
> which item is selected is via:
>
> make MENUCONFIG_COLOR=mono menuconfig
>
> Which restores the pre-2.6.19 white on black highlighting.
Fix.
Cc: Phil Oester <kernel@linuxace.com>
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/lxdialog/util.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c index ebc781b493d7..d54440fc166c 100644 --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c | |||
@@ -221,16 +221,14 @@ static void init_dialog_colors(void) | |||
221 | */ | 221 | */ |
222 | static void color_setup(const char *theme) | 222 | static void color_setup(const char *theme) |
223 | { | 223 | { |
224 | if (set_theme(theme)) { | 224 | int use_color; |
225 | if (has_colors()) { /* Terminal supports color? */ | 225 | |
226 | start_color(); | 226 | use_color = set_theme(theme); |
227 | init_dialog_colors(); | 227 | if (use_color && has_colors()) { |
228 | } | 228 | start_color(); |
229 | } | 229 | init_dialog_colors(); |
230 | else | 230 | } else |
231 | { | ||
232 | set_mono_theme(); | 231 | set_mono_theme(); |
233 | } | ||
234 | } | 232 | } |
235 | 233 | ||
236 | /* | 234 | /* |