Better curses init.
[apps/madmutt.git] / lib-ui / curs_lib.c
index 18216ab..ac049bf 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,12 +309,15 @@ void mutt_show_error (void)
 
 void curses_initialize(void)
 {
+    initscr();
     ci_start_color();
-    keypad(stdscr, true);
-    cbreak();
     noecho();
-    typeahead (-1);               /* simulate smooth scrolling */
+    raw();
+    keypad(stdscr, true);
+    typeahead(-1);
     meta(stdscr, true);
+    curs_set(0);
+    ESCDELAY = 50;
 }
 
 /*