X-Git-Url: https://git.deb.at/w?p=pkg%2Fabook.git;a=blobdiff_plain;f=ui.c;h=158f2ed1f586552732c81ff3186b656d79ace4ed;hp=8fd38ae0ecb6b2ce69ebacb16be44157e138f0c3;hb=db05da322d7ef6bd94e097fb95af1ffead328b96;hpb=29712efb58a9520824b4b0d7d1b9b9e2d1f59694 diff --git a/ui.c b/ui.c index 8fd38ae..158f2ed 100644 --- a/ui.c +++ b/ui.c @@ -139,7 +139,7 @@ ui_init_curses() ui_enable_mouse(TRUE); } keypad(stdscr, TRUE); - if(opt_get_bool(BOOL_USE_COLORS)) { + if(opt_get_bool(BOOL_USE_COLORS) && has_colors()) { start_color(); use_default_colors(); ui_init_color_pairs_user();