summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-03-08 17:43:20 +0000
committerRichard M. Stallman <rms@gnu.org>1996-03-08 17:43:20 +0000
commit1eb46b45fbe7f6c58adde08464f84f65dd67ba41 (patch)
tree0f0d718b61e0a18c08595fde0d7c91dd98576eeb
parentf9dcd35f65eaf9b559aa53cce41f2f51eee219a1 (diff)
downloademacs-1eb46b45fbe7f6c58adde08464f84f65dd67ba41.tar.gz
(init_sys_modes): Clear INLCR like ICRNL.
-rw-r--r--src/sysdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index bcb624e2040..0180d8601e8 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1250,6 +1250,10 @@ init_sys_modes ()
#endif
tty.main.c_iflag |= (IGNBRK); /* Ignore break condition */
tty.main.c_iflag &= ~ICRNL; /* Disable map of CR to NL on input */
+#ifdef INLCR /* I'm just being cautious,
+ since I can't check how widespread INLCR is--rms. */
+ tty.main.c_iflag &= ~INLCR; /* Disable map of NL to CR on input */
+#endif
#ifdef ISTRIP
tty.main.c_iflag &= ~ISTRIP; /* don't strip 8th bit on input */
#endif