# HG changeset patch # User Gerd Moellmann # Date 1002531500 0 # Node ID 39ebccb06546324e5ae89d105a73da3ce57d8e8f # Parent c45a806848d2609e9eed04afb5fe31bbab2c81fc (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]: Clear ICRNL and INLCR. From Daiki Ueno . diff -r c45a806848d2 -r 39ebccb06546 src/sysdep.c --- a/src/sysdep.c Mon Oct 08 08:39:21 2001 +0000 +++ b/src/sysdep.c Mon Oct 08 08:58:20 2001 +0000 @@ -588,6 +588,11 @@ #endif s.main.c_lflag &= ~ECHO; /* Disable echo */ s.main.c_lflag |= ISIG; /* Enable signals */ + s.main.c_iflag &= ~ICRNL; /* Disable map of CR to NL on input */ +#ifdef INLCR /* Just being cautious, since I can't check how + widespread INLCR is--rms. */ + s.main.c_iflag &= ~INLCR; /* Disable map of NL to CR on input */ +#endif #ifdef IUCLC s.main.c_iflag &= ~IUCLC; /* Disable downcasing on input. */ #endif