makeraw(): forget to clear IMAXBEL, set VMIN/VTIME
This commit is contained in:
parent
844a5df643
commit
4ceeaa06a8
@ -163,12 +163,13 @@ cfmakeraw(t)
|
||||
struct termios *t;
|
||||
{
|
||||
|
||||
t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
||||
t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
||||
t->c_oflag &= ~OPOST;
|
||||
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
|
||||
t->c_cflag &= ~(CSIZE|PARENB);
|
||||
t->c_cflag |= CS8;
|
||||
/* XXX set MIN/TIME */
|
||||
t->c_cc[VMIN] = 1;
|
||||
t->c_cc[VTIME] = 0;
|
||||
}
|
||||
|
||||
tcsendbreak(fd, len)
|
||||
|
Loading…
Reference in New Issue
Block a user