Mapping DEL to ^? (\127)

Christian Zahl czahl at opal.cs.tu-berlin.de
Wed May 29 18:05:28 AEST 1991


zjdg11 at hou.amoco.com (Jim Graham) writes:

>In article <3502 at opal.cs.tu-berlin.de> czahl at opal.cs.tu-berlin.de (Christian Zahl) writes:
>>flint at cutmcvax.cs.curtin.edu.au (Daniel Baldoni) writes:
>>
>>>	How can I remap the <DELETE> key on a HFT terminal so that
>>>	it actually registers as a <DEL> character (decimal 127)?
>>
>>On a PS/2 there is a program called "defkey" which is interactive driven.

>There is an even easier way to do it....just enter the following commands
>(note:  the ^? is <carat><?> --- same for the ^H)

>$ stty intr '^?'
>$ stty erase '^H'

>and, of course, the $ is your prompt.  this could be added to your .profile
>(or .login, .cshrc, .bashrc, etc.) and would be executed each time someone
>logs on.

That's only right while you are in the canonical Mode, where the lineediting
is active. If you also need it in various programs so you have to remap it
a described.

Chris.

-------------------------------------------------------------------------------
Christian Zahl - pure student         ! Technische Universitaet Berlin, Germany
EMAIL: czahl at opal.cs.tu-berlin.de



More information about the Comp.unix.aix mailing list