Circa 2001-Dec-04 15:00:07 +0000 dixit Rory Campbell-Lange:

: I sometimes have problems with my backspace key, frequently when a
: program opens from another program with a term. Normally the backspace
: key works fine, but when I'm trying to do a search in man, for instance,
: I daren't mis-type something, because all I will see is a string of
: literal '^H's when I press backspace.

Check your terminal settings:

  stty -a

Look for the string 'erase = <something>;', where <something> is either
'^?' or '^H'.  I suspect yours is set to '^?'.  You need to change the
terminal settings to use '^H' for the erase key.

If you are using xterm for your terminal emulator, this is easy; simply
add the following lines to your ~/.Xdefaults file:

  XTerm*VT100.backarrowKey: true

Alternatively, you can make sure that xterm adapts to whatever the
terminal settings are by using:

  XTerm*VT100.backarrowKeyIsErase: true

If you're using rxvt, you can use the following resource instead:

  Rxvt*backspacekey: DEC

This makes rxvt interpret [Backspace] as '^?', and [Shift+Backspace] as
'^H'.

I believe that KDE's Konsole and the GNOME Terminal both have menu
options to handle the Backspace/DEL problem.  I'm unsure about
derivatives of rxvt (aterm, eterm, wterm).

Good luck.

-- 
jim knoble | [EMAIL PROTECTED]   | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)

Attachment: msg04141/pgp00000.pgp
Description: PGP signature

Reply via email to