mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Simplify stdout_configure() code
This commit is contained in:
parent
f62e2f972b
commit
3d65e62e52
1 changed files with 1 additions and 2 deletions
|
|
@ -361,8 +361,7 @@ void stdout_configure(void)
|
|||
memcpy(&stdout_new, &stdout_old, sizeof(stdout_old));
|
||||
|
||||
/* Reconfigure stdout (RAW configuration) */
|
||||
stdout_new.c_oflag &= ~(OPOST);
|
||||
stdout_new.c_lflag &= ~(ECHO|ICANON|ISIG|ECHOE|ECHOK|ECHONL);
|
||||
cfmakeraw(&stdout_new);
|
||||
|
||||
/* Control characters */
|
||||
stdout_new.c_cc[VTIME] = 0; /* Inter-character timer unused */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue