Fix missed keystrokes (imported patch from Debian).

This commit is contained in:
mmdolze
2011-10-23 08:23:47 +00:00
parent 72dff35234
commit 869559f1fe
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -606,11 +606,12 @@ curses_flush (Driver *drvthis)
PrivateData *p = drvthis->private_data;
int c;
if ((c = getch()) != ERR)
if ((c = getch()) != ERR) {
if (c == 0x0C) { /* ^L restores screen */
curses_restore_screen(drvthis);
ungetch(c);
}
ungetch(c);
}
if (p->drawBorder)
curses_wborder(drvthis);