Terminals without color are from another era.
[apps/madmutt.git] / lib-ui / curs_lib.c
index 437ffbc..a2b88c8 100644 (file)
@@ -311,7 +311,8 @@ void mutt_show_error (void)
 void curses_initialize(void)
 {
     initscr();
-    start_color();
+    if (start_color() == ERR || !has_colors() || COLORS < 8)
+        mutt_exit(-1);
     madtty_init_colors();
     ci_start_color();
     noecho();