Configure socket mapping flags from tty parsing logic. Remove duplicate parsing logic in socket

This commit is contained in:
Braden Young 2023-04-14 13:08:48 -07:00
parent 65b3353f57
commit 5651c1c5d7
3 changed files with 10 additions and 41 deletions

View file

@ -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)
{