Explorar el Código

Check getch() against ERR

master
sin hace 10 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); getyx(stdscr, y, x);
x0 = x; x0 = x;


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


||||||
x
 
000:0
Cargando…
Cancelar
Guardar