mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
use read(..., ..., 1) instead of getchar
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user