Mercurial > emacs
changeset 5967:ac268a6d91d6
(child_setup_tty): Use IUCLC, OLCUC, NLDLY only if defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 17 Feb 1994 03:20:17 +0000 |
parents | cef67aeae92b |
children | 2c31582df670 |
files | src/sysdep.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Feb 17 03:07:50 1994 +0000 +++ b/src/sysdep.c Thu Feb 17 03:20:17 1994 +0000 @@ -464,14 +464,18 @@ #if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS) s.main.c_oflag |= OPOST; /* Enable output postprocessing */ s.main.c_oflag &= ~ONLCR; /* Disable map of NL to CR-NL on output */ +#ifdef NLDLY s.main.c_oflag &= ~(NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY); /* No output delays */ +#endif s.main.c_lflag &= ~ECHO; /* Disable echo */ s.main.c_lflag |= ISIG; /* Enable signals */ - s.main.c_iflag &= ~IUCLC; /* Disable map of upper case to lower on - input */ - s.main.c_oflag &= ~OLCUC; /* Disable map of lower case to upper on - output */ +#ifdef IUCLC + s.main.c_iflag &= ~IUCLC; /* Disable downcasing on input. */ +#endif +@ifdef OLCUC + s.main.c_oflag &= ~OLCUC; /* Disable upcasing on output. */ +#endif s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */ #if 0 /* Said to be unnecessary: */