How to make delete key send a control C in Linux filepro

Bill Campbell bill at celestial.com
Fri May 11 15:07:38 PDT 2007


On Fri, May 11, 2007, Fairlight wrote:
>When asked his whereabouts on Fri, May 11, 2007 at 02:56:40PM -0400,
>Jay Ashworth took the fifth, drank it, and then slurred:
>> On Fri, May 04, 2007 at 11:57:32AM -0700, Bill Campbell wrote:
>> > This discussion comes up periodically.  IHMO, training people to
>> > use CTRL-C instead of the SCO specific DEL is preferable as most
>> > operating systems other than SCO use CTRL-C for interrupt.
>> 
>> SysV descended systems defaulted to DEL; BSD descended systems
>> defaulted to Ctrl-C.
>
>I don't remember HP/UX defaulting to that...although the admins could
>easily have changed it.

Xenix as implemented by Tandy/SCO usually used the DEL, and Xenix was a
bastard mix of SYSV and BSDish things.

To further complicate things, the key mappings on various terminal vary
widely (e.g. the DECish VTxxx terminals that send the DEL character from
the upper right character that most terminals call backspace and sends
ctrl-H).  Most keyboards today that are some variant on the 101 key PC
keyboard don't send a single DEL character when pressing the DEL key,
although this depends on the program interpreting the key strokes (e.g.
xterm, Anzio, ckermit, etc.).

The ctrl-C cancel has been widely used for decades on a wide variety of
systems, and is the same regardless of terminal type.  Having a single
standard was more important to me than when I switched from running SCO
systems in scoterms to running everything in xterms so I trained my fingers
to use ctrl-C.

My login procedures all set the interrupt character to ctrl-C and the erase
character to ctrl-H for consistency (and I have a $HOME/XTerm file that
gets most xterms to use ctrl-H instead of the DECish mapping).

	stty intr '^C' erase '^H'

BTW:  I do find myself hitting ctrl-H to backspace on occassions when I'm
at a Linux system console that's sending DEL from the backspace key.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``It is our duty still to endeavor to avoid war; but if it shall actually
take place, no matter by whom brought on, we must defend ourselves. If our
house be on fire, without inquiring whether it was fired from within or
without, we must try to extinguish it.''
    -- Thomas Jefferson to James Lewis, Jr., 1798.


More information about the Filepro-list mailing list