Added support for ^L (redraw screen). Operation is invisible to

callers of getkey().
This commit is contained in:
ddouthitt
2001-09-30 04:18:39 +00:00
parent 4558e344e8
commit cc56196ef0
+19 -14
View File
@@ -538,18 +538,23 @@ curses_drv_getkey ()
i = getch (); i = getch ();
if (i == KEY_LEFT) switch(i) {
return 'D'; case 0x0C:
if (i == KEY_UP) redrawwin(lcd_win);
return 'B'; wrefresh(lcd_win);
if (i == KEY_DOWN) return 0;
return 'C'; break;
if (i == KEY_RIGHT) case KEY_LEFT:
return 'A'; return 'D';
case KEY_UP:
if (i != ERR) return 'B';
return i; case KEY_DOWN:
else return 'C';
return 0; case KEY_RIGHT:
return 'A';
case ERR:
return 0;
default:
return i;
}
} }