Mapping DEL to ^? (\127)

jim frost madd at world.std.com
Tue Jun 4 08:15:21 AEST 1991


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

>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.

If you're using aixterm on 3.1.5 or later you must put in a
translation to get the delete key to look like delete instead of some
silly escape sequence.  Add this to your .Xdefaults:

aixterm*translations: <Key>Delete: string(0x7f)

Some people, like myself, remap the backspace key to delete (thus
making emacs work reasonably on the '6000).  Xmodmap used to work with
3.1.3 or earlier but aixterm seems to ignore it as of 3.1.5.  The fix
is the following translation:

aixterm*translations: <Key>BackSpace: string(0x7f)\n<Key>Delete: string(0x7f)

If you're using emacs on a 3151 you basically get to disable help to
get reasonable editting behavior.

Happy hacking,

jim frost
jimf at saber.com



More information about the Comp.unix.aix mailing list