aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lxdialog/util.c
diff options
context:
space:
mode:
authorAndi Kleen <andi@basil.nowhere.org>2006-11-28 14:12:29 -0500
committerAndi Kleen <andi@basil.nowhere.org>2006-11-28 14:12:29 -0500
commita3550a9c543556cf7764be81aeb17c6dab440753 (patch)
treee8c8bf721cc917c8842c4a007ad4b3f68eb7aa1e /scripts/kconfig/lxdialog/util.c
parent9a14f2964b459c18198ee59ff7212321def82df7 (diff)
parent2ea5814472c3c910aed5c5b60f1f3b1000e353f1 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'scripts/kconfig/lxdialog/util.c')
-rw-r--r--scripts/kconfig/lxdialog/util.c16
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 */
222static void color_setup(const char *theme) 222static 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/*