cfmakeraw(): set IGNBRK, clear IXOFF, INPCK per Bruce suggestion

Set IGNPAR, clear NOFLSH, PENDIN, TOSTOP, ECHOE, ECHOK
This commit is contained in:
Andrey A. Chernov 1994-10-22 18:12:17 +00:00
parent 2fc59d0032
commit 780bd8bd41

View File

@ -163,9 +163,10 @@ cfmakeraw(t)
struct termios *t;
{
t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_iflag &= ~(IMAXBEL|IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_iflag |= (IGNBRK|IGNPAR);
t->c_oflag &= ~OPOST;
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP|PENDIN);
t->c_cflag &= ~(CSIZE|PARENB);
t->c_cflag |= CS8;
t->c_cc[VMIN] = 1;