I'm using Ubuntu 12.04.2, and my keyboard doesn't work normally in terminal. When I press the arrow keys, the characters "a", "b", "c", or "d" appear. The Backspace key is also not working.

migrated from stackoverflow.com Jun 25 '13 at 20:08

This question came from our site for professional and enthusiast programmers.

  • I know! But there are some commands in terminal. By that keyboard starts working neatly. So I'm looking for them. – Chinmay Joshi Jun 24 '13 at 12:10
  • 1
    The ALT key on your keyboard is stuck, most likely. – gertvdijk Jun 25 '13 at 20:29
  • 1
    @gertvdijk That'd explain the ABCD bit, but not backspace failing (alt+backspace deletes previous word, doesn't disable it) – Jez W Jul 30 '13 at 11:14

By default, Ubuntu will install vim-tiny, a bare-bones version of vim. When you type vi in the terminal, it will start this minimal vim in vi compatible mode by default. From a normal vim user's standpoint, this is horrible, since vi compatible means backspace and all the normal vim behavior will behave in the original vi manner. so, install vim by typing the command :

sudo apt-get install vim

problem solved !! enjoy programming ;) :)

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.