build tools on configure
[apps/madmutt.git] / lib-ui / curs_lib.c
index 18216ab..1051759 100644 (file)
@@ -199,6 +199,7 @@ int mutt_yesorno (const char *msg, int def)
     waddstr (stdscr, (char *) (def == M_YES ? yes : no));
     mutt_refresh ();
   }
+  CLEARLINE(stdscr, LINES - 1);
   return (def);
 }
 
@@ -308,6 +309,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();