mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 11:05:37 +00:00
use read(..., ..., 1) instead of getchar
This commit is contained in:
parent
aa29530d92
commit
85edadb6e4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user