From: Gerd Moellmann Date: Mon, 8 Oct 2001 08:59:50 +0000 (+0000) Subject: (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]: X-Git-Tag: ttn-vms-21-2-B4~19647 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=402c9a512185f6748803868c1c0ed503227d3301;p=emacs.git (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]: Clear ICRNL and INLCR. From Daiki Ueno . --- diff --git a/src/ChangeLog b/src/ChangeLog index c4030bffbb6..526ec3146e6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-10-08 Gerd Moellmann + + * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]: + Clear ICRNL and INLCR. From Daiki Ueno . + 2001-10-08 Pavel Jan,Bm(Bk * keyboard.c: Don't define min/max. diff --git a/src/sysdep.c b/src/sysdep.c index ba68a9d4e93..e0def2027a5 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -588,6 +588,11 @@ child_setup_tty (out) #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