aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 058af1624d7..119177b78a1 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -464,14 +464,18 @@ child_setup_tty (out)
464#if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS) 464#if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS)
465 s.main.c_oflag |= OPOST; /* Enable output postprocessing */ 465 s.main.c_oflag |= OPOST; /* Enable output postprocessing */
466 s.main.c_oflag &= ~ONLCR; /* Disable map of NL to CR-NL on output */ 466 s.main.c_oflag &= ~ONLCR; /* Disable map of NL to CR-NL on output */
467#ifdef NLDLY
467 s.main.c_oflag &= ~(NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY); 468 s.main.c_oflag &= ~(NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
468 /* No output delays */ 469 /* No output delays */
470#endif
469 s.main.c_lflag &= ~ECHO; /* Disable echo */ 471 s.main.c_lflag &= ~ECHO; /* Disable echo */
470 s.main.c_lflag |= ISIG; /* Enable signals */ 472 s.main.c_lflag |= ISIG; /* Enable signals */
471 s.main.c_iflag &= ~IUCLC; /* Disable map of upper case to lower on 473#ifdef IUCLC
472 input */ 474 s.main.c_iflag &= ~IUCLC; /* Disable downcasing on input. */
473 s.main.c_oflag &= ~OLCUC; /* Disable map of lower case to upper on 475#endif
474 output */ 476@ifdef OLCUC
477 s.main.c_oflag &= ~OLCUC; /* Disable upcasing on output. */
478#endif
475 s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */ 479 s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */
476#if 0 480#if 0
477 /* Said to be unnecessary: */ 481 /* Said to be unnecessary: */