mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Simplify stdin_configure() code
This commit is contained in:
parent
e72a2ede76
commit
f62e2f972b
1 changed files with 1 additions and 3 deletions
|
|
@ -319,9 +319,7 @@ void stdin_configure(void)
|
|||
memcpy(&stdin_new, &stdin_old, sizeof(stdin_old));
|
||||
|
||||
/* Reconfigure stdin (RAW configuration) */
|
||||
stdin_new.c_iflag &= ~(ICRNL); // Do not translate CR -> NL on input
|
||||
stdin_new.c_oflag &= ~(OPOST);
|
||||
stdin_new.c_lflag &= ~(ECHO|ICANON|ISIG|ECHOE|ECHOK|ECHONL);
|
||||
cfmakeraw(&stdin_new);
|
||||
|
||||
/* Control characters */
|
||||
stdin_new.c_cc[VTIME] = 0; /* Inter-character timer unused */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue