Wednesday, October 29, 2008

UNIX Delete/backspace Key

If you hit delete, and see a ^H, from your shell, type stty erase '^H'
If you hit delete, and see a ^?, from your shell type stty erase '^?'

To have a permanent fix (when you want to use backspace to delete
characters), you need to add the following to file that your shell uses for initialization (e.g. .profile , .login , .cshrc )

stty erase '^?'

Or

stty erase '^H'

In some X window client, hitting backspace doesn't reflect any character. You may want to key in Ctrl + H to have ^H.