[PATCH] fix menuconfig colours with TERM=vt100

On Mon, 13 Nov 2006, Phil Oester wrote:
> In commit 350b5b7638, 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>
This commit is contained in:
Roman Zippel
2006-11-25 11:09:32 -08:00
committed by Linus Torvalds
parent f12aa70452
commit c154348f00

View File

@@ -221,17 +221,15 @@ static void init_dialog_colors(void)
*/ */
static void color_setup(const char *theme) static void color_setup(const char *theme)
{ {
if (set_theme(theme)) { int use_color;
if (has_colors()) { /* Terminal supports color? */
use_color = set_theme(theme);
if (use_color && has_colors()) {
start_color(); start_color();
init_dialog_colors(); init_dialog_colors();
} } else
}
else
{
set_mono_theme(); set_mono_theme();
} }
}
/* /*
* Set window to attribute 'attr' * Set window to attribute 'attr'