Terminals without color are from another era.
[apps/madmutt.git] / lib-ui / curs_lib.c
index ac049bf..a2b88c8 100644 (file)
@@ -26,6 +26,7 @@
 #include "mutt.h"
 #include "pager.h"
 #include "charset.h"
+#include "madtty.h"
 
 /* not possible to unget more than one char under some curses libs, and it
  * is impossible to unget function keys in SLang, so roll our own input
@@ -310,6 +311,9 @@ void mutt_show_error (void)
 void curses_initialize(void)
 {
     initscr();
+    if (start_color() == ERR || !has_colors() || COLORS < 8)
+        mutt_exit(-1);
+    madtty_init_colors();
     ci_start_color();
     noecho();
     raw();