mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 03:12:38 +00:00
Merge branch 'Termios_fix' into 'next'
TERM IO fixup Closes #1141 See merge request STJr/SRB2!2206
This commit is contained in:
commit
10ca749991
1 changed files with 2 additions and 1 deletions
|
@ -608,6 +608,7 @@ void I_GetConsoleEvents(void)
|
|||
return;
|
||||
|
||||
ev.type = ev_console;
|
||||
ev.key = 0;
|
||||
if (read(STDIN_FILENO, &key, 1) == -1 || !key)
|
||||
return;
|
||||
|
||||
|
@ -634,7 +635,7 @@ void I_GetConsoleEvents(void)
|
|||
}
|
||||
else return;
|
||||
}
|
||||
else
|
||||
else if (tty_con.cursor < sizeof (tty_con.buffer))
|
||||
{
|
||||
// push regular character
|
||||
ev.key = tty_con.buffer[tty_con.cursor] = key;
|
||||
|
|
Loading…
Reference in a new issue