Sfoglia il codice sorgente

Check getch() against ERR

master
sin 11 anni fa
parent
commit
ce599b8e6b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c Vedi File

@@ -359,7 +359,7 @@ readln(void)
getyx(stdscr, y, x);
x0 = x;

while (c = getch()) {
while ((c = getch()) != ERR) {
if (c == KEY_ENTER || c == '\r')
break;
if (c == KEY_BACKSPACE) {


Loading…
Annulla
Salva