diff options
| author | Richard M. Stallman | 1994-02-17 03:20:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-17 03:20:17 +0000 |
| commit | 9d4e5eea22652c21786349938997e994568e2d93 (patch) | |
| tree | c3e1345c2abd4d5496815b62f56df589193a8bd1 /src/sysdep.c | |
| parent | a9f7a967cce71e986cc50d50470211f6473e8011 (diff) | |
| download | emacs-9d4e5eea22652c21786349938997e994568e2d93.tar.gz emacs-9d4e5eea22652c21786349938997e994568e2d93.zip | |
(child_setup_tty): Use IUCLC, OLCUC, NLDLY only if defined.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 12 |
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: */ |