comparison src/sysdep.c @ 4916:83db42883f64

(child_setup_tty): Make the pty handle 8-bit characters.
author Richard M. Stallman <rms@gnu.org>
date Sat, 06 Nov 1993 05:14:07 +0000
parents 2c6033bfb871
children 0c973730e476
comparison
equal deleted inserted replaced
4915:c0523a78e6a5 4916:83db42883f64
445 s.main.c_lflag |= ISIG; /* Enable signals */ 445 s.main.c_lflag |= ISIG; /* Enable signals */
446 s.main.c_iflag &= ~IUCLC; /* Disable map of upper case to lower on 446 s.main.c_iflag &= ~IUCLC; /* Disable map of upper case to lower on
447 input */ 447 input */
448 s.main.c_oflag &= ~OLCUC; /* Disable map of lower case to upper on 448 s.main.c_oflag &= ~OLCUC; /* Disable map of lower case to upper on
449 output */ 449 output */
450 s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */
450 #if 0 451 #if 0
451 /* Said to be unnecessary: */ 452 /* Said to be unnecessary: */
452 s.main.c_cc[VMIN] = 1; /* minimum number of characters to accept */ 453 s.main.c_cc[VMIN] = 1; /* minimum number of characters to accept */
453 s.main.c_cc[VTIME] = 0; /* wait forever for at least 1 character */ 454 s.main.c_cc[VTIME] = 0; /* wait forever for at least 1 character */
454 #endif 455 #endif
495 496
496 s.main.sg_flags &= ~(ECHO | CRMOD | ANYP | ALLDELAY | RAW | LCASE 497 s.main.sg_flags &= ~(ECHO | CRMOD | ANYP | ALLDELAY | RAW | LCASE
497 | CBREAK | TANDEM); 498 | CBREAK | TANDEM);
498 s.main.sg_erase = 0377; 499 s.main.sg_erase = 0377;
499 s.main.sg_kill = 0377; 500 s.main.sg_kill = 0377;
501 s.lmode = LLITOUT | s.lmode; /* Don't strip 8th bit */
500 502
501 #endif /* not HAVE_TERMIO */ 503 #endif /* not HAVE_TERMIO */
502 504
503 EMACS_SET_TTY (out, &s, 0); 505 EMACS_SET_TTY (out, &s, 0);
504 506