Do not use implicit ncurses functions, now we can grep for 'stdscr' to find them.
[apps/madmutt.git] / keymap.c
index 106df72..ccce5c7 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -335,12 +335,12 @@ int km_dokey (int menu)
   for (;;) {
     /* ncurses doesn't return on resized screen when timeout is set to zero */
     if (menu != MENU_EDITOR)
-      timeout ((Timeout > 0 ? Timeout : 60) * 1000);
+      wtimeout (stdscr, (Timeout > 0 ? Timeout : 60) * 1000);
 
     tmp = mutt_getch ();
 
     if (menu != MENU_EDITOR)
-      timeout (-1);             /* restore blocking operation */
+      wtimeout (stdscr, -1);             /* restore blocking operation */
 
     LastKey = tmp.ch;
     if (LastKey == -1)
@@ -865,9 +865,9 @@ void mutt_what_key (void)
 {
   int ch;
 
-  mvprintw (LINES - 1, 0, _("Enter keys (^G to abort): "));
+  mvwprintw (stdscr, LINES - 1, 0, _("Enter keys (^G to abort): "));
   do {
-    ch = getch ();
+    ch = wgetch (stdscr);
     if (ch != ERR && ch != ctrl ('G')) {
       mutt_message (_("Char = %s, Octal = %o, Decimal = %d"),
                     km_keyname (ch), ch, ch);