Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41079
b: refs/heads/master
c: c154348
h: refs/heads/master
i:
  41077: f1f53f3
  41075: e30a1a1
  41071: feaca11
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Nov 25, 2006
1 parent 30fe257 commit 7bf53b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f12aa7045280836307e9bbdb1c676c4a94e2b3d3
refs/heads/master: c154348f00834911c49aa63dfb48bd50d1a07d93
16 changes: 7 additions & 9 deletions trunk/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 7bf53b9

Please sign in to comment.