diff --git a/src/Console.cpp b/src/Console.cpp index 53a8324..dcc2ae5 100644 --- a/src/Console.cpp +++ b/src/Console.cpp @@ -87,7 +87,7 @@ void resetTermios(void) { char getch_(int echo) { char ch; initTermios(echo); - ch = getchar(); + read(STDIN_FILENO, &ch, 1); resetTermios(); return ch; }