Article View: gnu.emacs.bug
Article #98769child_setup_tty should clear erase/kill characters?
From: Ken Laprade
Date: Tue, 09 Apr 1991 17:08
Date: Tue, 09 Apr 1991 17:08
35 lines
1957 bytes
1957 bytes
GNU Emacs 18.57.1, Mips M1000, RiscOS 4.0, cc, s-bsd4-3.h, m-mips4.h.
GNU Emacs 18.57.1, Sun 3/xxx, SunOS 4.0.1, cc, s-sunos4.h, m-sun3.h.
For systems that define HAVE_TERMIO (usually SYSV things), the erase and
kill characters are set to 0377 to disable them. However, they are left
unmodified for other systems (usually BSD). Since they normally default to
^H and ^U, there is usually no problem. However, under RiscOS 4.0, the
default settings are '#' and '@' which are not desirable.
I applied the following patch to my copy of sysdep.c:
--------------------
*** sysdep.c-orig Tue Jan 15 21:43:59 1991
--- sysdep.c Tue Apr 9 11:17:11 1991
***************
*** 533,538 ****
--- 533,540 ----
#else /* not HAVE_TERMIO */
s.sg_flags &= ~(ECHO | CRMOD | ANYP | ALLDELAY | RAW | LCASE | CBREAK | TANDEM);
+ s.sg_erase = 0377;
+ s.sg_kill = 0377;
#endif /* not HAVE_TERMIO */
ioctl (out, TIOCSETN, &s);
--------------------
Is there any reason that these characters should not be undefined for BSD
systems? Maybe the other tty characters should be disabled/defined as
well.
---
Ken Laprade INTERNET: laprade@trantor.harris-atd.com
Harris Corporation Usenet: ...!uunet!x102a!trantor!laprade
PO Box 37, MS 3A/1912 Voice: (407)727-4433
Melbourne, FL 32902 FAX: (407)729-3363
Technical Details
Message-ID:
<9104091708.AA20216@trantor.harris-atd.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,3049119ec5a596db,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-04-09 15:55:40 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage From: laprade@TRANTOR.HARRIS-ATD.COM (Ken Laprade) Newsgroups: gnu.emacs.bug Subject: child_setup_tty should clear erase/kill characters? Message-ID: <9104091708.AA20216@trantor.harris-atd.com> Date: 9 Apr 91 17:08:34 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 35 Approved: bug-gnu-emacs@prep.ai.mit.edu