aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/sysdep.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e62c833c3e6..cb41750a62c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4 the HAVE_TERMIO where it belongs (bug#6149).
5
12010-05-30 Eli Zaretskii <eliz@gnu.org> 62010-05-30 Eli Zaretskii <eliz@gnu.org>
2 7
3 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel 8 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
diff --git a/src/sysdep.c b/src/sysdep.c
index 1e114655b4e..46169b28e1f 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -537,15 +537,6 @@ child_setup_tty (out)
537 s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */ 537 s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */
538#endif /* AIX */ 538#endif /* AIX */
539 539
540#else /* not HAVE_TERMIO */
541
542 s.main.sg_flags &= ~(ECHO | CRMOD | ANYP | ALLDELAY | RAW | LCASE
543 | CBREAK | TANDEM);
544 s.main.sg_flags |= LPASS8;
545 s.main.sg_erase = 0377;
546 s.main.sg_kill = 0377;
547 s.lmode = LLITOUT | s.lmode; /* Don't strip 8th bit */
548
549 /* We used to enable ICANON (and set VEOF to 04), but this leads to 540 /* We used to enable ICANON (and set VEOF to 04), but this leads to
550 problems where process.c wants to send EOFs every once in a while 541 problems where process.c wants to send EOFs every once in a while
551 to force the output, which leads to weird effects when the 542 to force the output, which leads to weird effects when the
@@ -558,6 +549,15 @@ child_setup_tty (out)
558 s.main.c_cc[VMIN] = 1; 549 s.main.c_cc[VMIN] = 1;
559 s.main.c_cc[VTIME] = 0; 550 s.main.c_cc[VTIME] = 0;
560 551
552#else /* not HAVE_TERMIO */
553
554 s.main.sg_flags &= ~(ECHO | CRMOD | ANYP | ALLDELAY | RAW | LCASE
555 | CBREAK | TANDEM);
556 s.main.sg_flags |= LPASS8;
557 s.main.sg_erase = 0377;
558 s.main.sg_kill = 0377;
559 s.lmode = LLITOUT | s.lmode; /* Don't strip 8th bit */
560
561#endif /* not HAVE_TERMIO */ 561#endif /* not HAVE_TERMIO */
562 562
563 EMACS_SET_TTY (out, &s, 0); 563 EMACS_SET_TTY (out, &s, 0);