comparison src/sysdep.c @ 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 1b850ec1a5e2
children ccb0f99750e3
comparison
equal deleted inserted replaced
5966:cef67aeae92b 5967:ac268a6d91d6
462 EMACS_GET_TTY (out, &s); 462 EMACS_GET_TTY (out, &s);
463 463
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: */
478 s.main.c_cc[VMIN] = 1; /* minimum number of characters to accept */ 482 s.main.c_cc[VMIN] = 1; /* minimum number of characters to accept */
479 s.main.c_cc[VTIME] = 0; /* wait forever for at least 1 character */ 483 s.main.c_cc[VTIME] = 0; /* wait forever for at least 1 character */