Simplifications.
[apps/madmutt.git] / lib-ui / curs_lib.c
index 18216ab..c51f1a4 100644 (file)
@@ -308,6 +308,10 @@ void mutt_show_error (void)
 
 void curses_initialize(void)
 {
+    if (initscr () == NULL) {
+        puts _("Error initializing terminal.");
+        exit (1);
+    }
     ci_start_color();
     keypad(stdscr, true);
     cbreak();