OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

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

  • Thread starter Thread starter LittleBobbyTables
  • Start date Start date
L

LittleBobbyTables

Guest
Has anyone else ever had this error in PuTTy?

For example, pressing the Up Key now produces:

Code:
>>> ^[[A

Google doesn't let you search for special characters so I'm stumped at finding existing version of this problem.



EDIT:

So this happened after I pasted in some unicode (when, I think, the translation was already set to utf-8).

I've checked the Change Settings dialog box for different settings than my other open PuTTy windows, but the settings appear to be identical.

EDIT2:

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

EDIT3:

How to replicate the exact same bug:


  1. Open a putty terminal to a linux PC (I'm using RedHat)
  2. Open Python 2.7.* - using the command python2.7 (note: error does not appear in 2.6)
  3. import codecs
  4. Now use the arrow keys, and these bizarre characters appear.
<p>Has anyone else ever had this error in PuTTy?</p>

<p>For example, pressing the Up Key now produces:</p>

<pre><code>>>> ^[[A
</code></pre>

<p>Google doesn't let you search for special characters so I'm stumped at finding existing version of this problem. </p>

<hr>

<p>EDIT:</p>

<p>So this happened after I pasted in some unicode (when, I think, the translation was already set to utf-8). </p>

<p>I've checked the Change Settings dialog box for different settings than my other open PuTTy windows, but the settings appear to be identical. </p>

<p>EDIT2:</p>

<p>This is fixed by restarting PuTTy, but still a nuisance. </p>

<p><strong>EDIT3:</strong></p>

<p><strong>How to replicate the exact same bug:</strong></p>

<ol>
<li>Open a putty terminal to a linux PC (I'm using RedHat)</li>
<li>Open Python 2.7.* - using the command <code>python2.7</code> (note: error does not appear in 2.6)</li>
<li><code>import codecs</code></li>
<li>Now use the arrow keys, and these bizarre characters appear. </li>
</ol>
 

Latest posts

M
Replies
0
Views
1
Meliodas Dragon
M
Top