Skip to content

Commit

Permalink
[PATCH] fix menuconfig colours with TERM=vt100
Browse files Browse the repository at this point in the history
On Mon, 13 Nov 2006, Phil Oester wrote:
> In commit 350b5b7, 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>
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Nov 25, 2006
1 parent f12aa70 commit c154348
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions scripts/kconfig/lxdialog/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,14 @@ static void init_dialog_colors(void)
*/
static void color_setup(const char *theme)
{
if (set_theme(theme)) {
if (has_colors()) { /* Terminal supports color? */
start_color();
init_dialog_colors();
}
}
else
{
int use_color;

use_color = set_theme(theme);
if (use_color && has_colors()) {
start_color();
init_dialog_colors();
} else
set_mono_theme();
}
}

/*
Expand Down

0 comments on commit c154348

Please sign in to comment.