Kyle’s Reference Links

Contents External Links Friendly Links Marvin Links

The Problem

Pressing the backspace key doesn't work in all terminal applications. Often, instead of deleting something, a ^? or ^H is printed.

The Temporary Fix

Make sure that your Xterm is sending the right thing. You can switch between the two correct values by control-clicking on your xterm and selecting "Backarrow Key (BS/DEL)".

The Best Solution

Add the following to your .Xdefaults file:

xterm*ttyModes: erase ^?
xterm*VT100.Translations: \
    #override <Key>BackSpace: string(0x7f) \n\
              <Key>Delete:    string(0x1b) string("[3~")
You MAY also want to add
xterm*backarrowKey: false
but it's probably unnecessary.

Valid XHTML 1.0 Strict! Valid CSS! Lovingly handcrafted with Vim