5

Following this question, running /usr/bin/reset destroys my backspace functionality.

What can I do? After pressing backspace I get ^?

  • 1
    what terminal application are you using? gnome-terminal? can you try it on xterm or konsole or other terminal app and tell us if you get the same results? – nmuntz Jul 26 '09 at 13:33
  • Also post the value of $TERM – Dennis Williamson Jul 26 '09 at 13:58
5

This will make the terminal interpret the key as Backspace:

stty erase "^?"

(^? can be either the Backspace key, or the literal ^ ?.)

  • works for me +1 – flybywire Jul 27 '09 at 8:15
4

Probably you need to fix you TERM variable to more accurately reflect the terminal emulator you are actually using. See man reset.

What's happening here is reset is putting things into a very vanilla state to insure that you can do some interaction with the terminal. If your login scripts set up any key interpretation rules not covered by your TERM variable (like the one suggested by grawity), you will have to reapply these by hand.

2

The everything-you-wanted-to-know-and-more answer:

http://tldp.org/HOWTO/BackspaceDelete/index.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.