mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix incorrect condition for clearing input map and soft-flow in raw mode
This commit is contained in:
parent
445a21b807
commit
e1d1c6f2bc
1 changed files with 2 additions and 5 deletions
|
|
@ -1710,11 +1710,8 @@ void tty_configure(void)
|
||||||
|
|
||||||
/* Create raw-mode configuration */
|
/* Create raw-mode configuration */
|
||||||
memcpy(&tio_raw, &tio, sizeof(tio_raw));
|
memcpy(&tio_raw, &tio, sizeof(tio_raw));
|
||||||
if (option.flow == FLOW_SOFT)
|
tio_raw.c_iflag &= ~(IXON | IXOFF | IXANY);
|
||||||
{
|
tio_raw.c_iflag &= ~(INLCR | IGNCR | ICRNL);
|
||||||
tio_raw.c_iflag &= ~(IXON | IXOFF | IXANY);
|
|
||||||
tio_raw.c_iflag &= ~(INLCR | IGNCR | ICRNL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void tty_reconfigure(void)
|
void tty_reconfigure(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue