Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'interpreter': 0.05; 'subject:Python': 0.06; 'session.': 0.07; 'currently,': 0.09; 'subject:keys': 0.09; 'python': 0.11; 'rebuild': 0.16; 'received:85.115': 0.16; 'received:85.115.54': 0.16; 'received:85.115.54.190': 0.16; 'received:cluster-j.mailcontrol.com': 0.16; 'ssh': 0.16; 'sudo': 0.16; 'followed': 0.16; 'fix': 0.17; 'feb': 0.22; '>>>': 0.22; 'to:name:python-list@python.org': 0.22; 'install': 0.23; 'this?': 0.23; '>>>': 0.24; 'header:Received:8': 0.24; 'fixed': 0.29; 'keys': 0.31; 'work:': 0.31; 'anyone': 0.31; 'received:169.254': 0.32; 'linux': 0.33; 'running': 0.33; 'comment': 0.34; 'problem': 0.35; 'url:rec-html40': 0.35; 'installing': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:169': 0.37; 'url:microsoft': 0.37; 'skip:& 10': 0.38; 'easiest': 0.38; 'hat': 0.38; 'url:office': 0.38; 'to:addr:python- list': 0.38; 'url:schemas': 0.38; 'url:omml': 0.39; 'url:2004': 0.39; 'skip:& 20': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'more': 0.64; '3.4': 0.84; 'apt-get': 0.84; 'package:': 0.93 From: David Aldrich To: "python-list@python.org" Subject: Python shell: Arrow keys not working in PuTTY Thread-Topic: Python shell: Arrow keys not working in PuTTY Thread-Index: AdBPbt0k8IudwGb4QbCd1RWa2HFGdA== Date: Mon, 23 Feb 2015 13:44:41 +0000 Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.29.68.112] Content-Type: multipart/alternative; boundary="_000_41302A7145AC054FA7A96CFD03835A0A0B9451B8EX10MBX02EUNECC_" MIME-Version: 1.0 X-Scanned-By: MailControl 37812.332 (www.mailcontrol.com) on 10.74.0.138 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 151 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424699091 news.xs4all.nl 2961 [2001:888:2000:d::a6]:54051 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86219 --_000_41302A7145AC054FA7A96CFD03835A0A0B9451B8EX10MBX02EUNECC_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I want to use the Python 3.4 interpreter interactively, via a PuTTY ssh ses= sion. 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-wo= rk-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 --_000_41302A7145AC054FA7A96CFD03835A0A0B9451B8EX10MBX02EUNECC_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I want to use the Python 3.4 interpreter interactive= ly, 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://stackoverflo= w.com/questions/893053/python-shell-arrow-keys-do-not-work-on-remote-machin= e

 

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

 

sudo apt-get install li= breadline-dev

 

followed by a rebuild o= f Python

 

or

 

pip install readline

 

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

 

Best rega= rds

&nbs= p;

David

 

--_000_41302A7145AC054FA7A96CFD03835A0A0B9451B8EX10MBX02EUNECC_--