mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Configure socket mapping flags from tty parsing logic. Remove duplicate parsing logic in socket
This commit is contained in:
parent
65b3353f57
commit
5651c1c5d7
3 changed files with 10 additions and 41 deletions
|
|
@ -987,14 +987,17 @@ void tty_configure(void)
|
|||
if (strcmp(token,"INLCR") == 0)
|
||||
{
|
||||
tio.c_iflag |= INLCR;
|
||||
map_i_nl_cr = true;
|
||||
}
|
||||
else if (strcmp(token,"IGNCR") == 0)
|
||||
{
|
||||
tio.c_iflag |= IGNCR;
|
||||
map_ign_cr = true;
|
||||
}
|
||||
else if (strcmp(token,"ICRNL") == 0)
|
||||
{
|
||||
tio.c_iflag |= ICRNL;
|
||||
map_i_cr_nl = true;
|
||||
}
|
||||
else if (strcmp(token,"OCRNL") == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue