2

Till yesterday the backspace was working perfectly . But something happened and backspace stopped working in the terminal alone . Backspace is working perfectly in other cases ..like in a normal text editor and all ..everything is normal ..except the terminal thing ..so can someone please help me ? I use ipython a lot ..so i desperately need the backspace to work ..

thanks in advance

3
  • Try installing another terminal emulator. It might be an error in the config file. Oct 25, 2014 at 14:35
  • Try using xfce4-terminal. You can install it by doing sudo apt-get install xfce4-terminal
    – Smile4ever
    Oct 25, 2014 at 17:53
  • @Supercooldude283 Can you post the result of echo $0 in terminal??? Please Oct 26, 2014 at 4:41

1 Answer 1

2

As I think your Del, Tab and arrow keys also didn't work. If you did echo $0 and you see /bin/sh then you need to set your your shell to /bin/bash instead. So run chsh -s /bin/bash to change your login shell to bash and check again your keys(Backspace, Del, Tab and arrow keys) if fixed.

Or you can make sure that your TTY is configured with the right characters by checking the output of stty -a, and setting the erase character to match what's being sent with stty erase ^?.

If you run stty -a | grep -w erase, you will see something like this:

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;

If that is different changing login shell to bash solve your problem but if didn't solve you can run stty erase ^? to solve the problem and also did the same for your another keys(Del, Tab, Arrow keys).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .