Explorar el Código

Check getch() against ERR

master
sin hace 11 años
padre
commit
ce599b8e6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c Ver fichero

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


Cargando…
Cancelar
Guardar