This commit is contained in:
Helio Machado 2020-02-09 18:04:46 +01:00 committed by GitHub
parent d6e1d48284
commit 8f831ceb0b

View file

@ -49,7 +49,7 @@ int ukbhit(void)
error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty); // reset attributes error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty); // reset attributes
} }
return ( error == 0 ? cnt : -1 ); return cnt;
} }
char getch(void) char getch(void)