init: do not clear CRTSCTS (fix from Debian bug 528560)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-10-24 02:04:10 +02:00
parent 2b299fed6a
commit f2657a9968

View File

@ -463,7 +463,11 @@ static void set_sane_term(void)
#endif #endif
/* Make it be sane */ /* Make it be sane */
tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD; #ifndef CRTSCTS
# define CRTSCTS 0
#endif
/* added CRTSCTS to fix Debian bug 528560 */
tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD | CRTSCTS;
tty.c_cflag |= CREAD | HUPCL | CLOCAL; tty.c_cflag |= CREAD | HUPCL | CLOCAL;
/* input modes */ /* input modes */
@ -473,8 +477,7 @@ static void set_sane_term(void)
tty.c_oflag = OPOST | ONLCR; tty.c_oflag = OPOST | ONLCR;
/* local modes */ /* local modes */
tty.c_lflag = tty.c_lflag = ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN;
ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN;
tcsetattr_stdin_TCSANOW(&tty); tcsetattr_stdin_TCSANOW(&tty);
} }