Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86219 > unrolled thread

Python shell: Arrow keys not working in PuTTY

Started byDavid Aldrich <David.Aldrich@EMEA.NEC.COM>
First post2015-02-23 13:44 +0000
Last post2015-02-23 13:44 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Python shell: Arrow keys not working in PuTTY David Aldrich <David.Aldrich@EMEA.NEC.COM> - 2015-02-23 13:44 +0000

#86219 — Python shell: Arrow keys not working in PuTTY

FromDavid Aldrich <David.Aldrich@EMEA.NEC.COM>
Date2015-02-23 13:44 +0000
SubjectPython shell: Arrow keys not working in PuTTY
Message-ID<mailman.19070.1424699091.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi

I want to use the Python 3.4 interpreter interactively, via a PuTTY ssh session.  Python is running on Centos 5.

Currently, the arrow keys do not work:

$ /usr/local/bin/python3.4
Python 3.4.2 (default, Feb 11 2015, 15:06:33)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ^[[A

This stackoverflow thread:

http://stackoverflow.com/questions/893053/python-shell-arrow-keys-do-not-work-on-remote-machine

suggests that the problem can be fixed by installing the readline package:

sudo apt-get install libreadline-dev

followed by a rebuild of Python

or

pip install readline

Please can anyone comment on the easiest way to fix this?  Is a rebuild of Python necessary?

Best regards

David

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web