0

I installed Ubuntu 12.04 LTS in Windows 8.1 using vmware workstation. When I open a file in the terminal using vi filename.c, the arrow buttons will not work properly, pressing up arrow prints A, down arrow B, right arrow C,left arrow D. How can I overcome this problem?

muru
  • 193,181
  • 53
  • 473
  • 722
ramesh
  • 1
  • 1
  • What program are you opening? What your describing is perfectly normal behaviour. –  Sep 25 '15 at 08:00
  • Please [edit] your question and add what command you use to open a file in terminal (e.g. `nano`) and what terminal-emulator (e.g. `gnome-terminal`) you use. Besides this, are you holding the `SHIFT` key in the meanwhile? `SHIFT`+`↑` is "A", `SHIFT`+`↓` is "B", `SHIFT`+`→` is "C" and `SHIFT`+`←` is "D", that's normal. – Byte Commander Sep 25 '15 at 08:01
  • I use vi command to open a **.c** files,the shift key is not is working properly. – ramesh Sep 26 '15 at 10:18
  • Look into your shift key – Zuko Sep 26 '15 at 11:43

1 Answers1

1

Your Shift key is probably stuck.

This can happen because either the keyboard key switch is physically stuck a bit or because the last time you released the key the system did not properly detect it.

Both causes should get eliminated by hitting the key a few times.

It's perfectly normal behaviour that the key combinations Shift+, Shift+, Shift+ and Shift+ in a terminal window result in the characters A, B, C and D to be printed.

Byte Commander
  • 105,631
  • 46
  • 284
  • 425