/usr/bin/reset disables backspace

5

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

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

flybywire

Posted 2009-07-26T13:21:52.457

Reputation: 3 732

1what 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 – 2009-07-26T13:33:49.270

Also post the value of $TERM – Paused until further notice. – 2009-07-26T13:58:54.683

Answers

5

This will make the terminal interpret the key as Backspace:

stty erase "^?"

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

user1686

Posted 2009-07-26T13:21:52.457

Reputation: 283 655

works for me +1 – flybywire – 2009-07-27T08:15:03.080

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.

dmckee --- ex-moderator kitten

Posted 2009-07-26T13:21:52.457

Reputation: 7 311

2

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

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

Kevin Panko

Posted 2009-07-26T13:21:52.457

Reputation: 6 339