Arrow keys in Putty returning ^ [[A ^ [[D ^ [[B instead of moving the cursor

Has anyone else had this bug in PuTTy?

For example, pressing the Up key now produces:

>>> ^[[A 

Google does not allow you to search for special characters, so I cannot find an existing version of this problem.




EDIT:

So, this happened after I inserted it into some unicode (when, I think, the translation was already installed on utf-8).

I checked the "Change Settings" dialog box for different settings than other open PuTTy windows, but the settings look the same.

EDIT2:

This is fixed by restarting PuTTy, but still a nuisance.

EDIT3:

How to replicate the same error:

  • Open putty terminal on Linux PC (I use RedHat)
  • Open Python 2.7. * - using the python2.7 command (note: the error does not appear in version 2.6)
  • import codecs
  • Now use the arrow keys and these fancy characters appear.
+47
python putty arrow-keys
Feb 12 '13 at 16:33
source share
5 answers

In my experience, because "bash" doesn't work. Just run "/ bin / bash" to enjoy colors, history, etc.

+92
Jun 10 '14 at 12:16
source share

You can try changing the "Cursor application keys" mode. It is located in the Terminal-> Keyboard section of the initial configuration window (these settings can be ported by your server).

http://the.earth.li/~sgtatham/putty/0.55/htmldoc/Chapter4.html#S4.4.4

+1
Feb 12 '13 at 16:43
source share

For those who are interested in the problem, they had the same symptoms in a virtual environment, they solved the problem with

 pip install readlines 

See the following answer for more details.

+1
Nov 08 '13 at 21:30
source share

Just run a simple bash command or sudo bash in ssh. This usually works.

+1
Jan 15 '16 at 13:58
source share

I found that specifying "Function keys and keyboard" according to your operating system solves many problems.

[putty]

Terminal → Keyboard → RadioButton "Linux"

(if you are using Linux) and then you can start a session

+1
Dec 24 '16 at 22:19
source share



All Articles