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)
{
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);