This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Arrow keys not working with Python 2.6rc1
Type: behavior Stage:
Components: Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Chewie, benjamin.peterson, gregory.p.smith
Priority: normal Keywords:

Created on 2008-09-14 16:25 by Chewie, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg73229 - (view) Author: Daniel (Chewie) Date: 2008-09-14 16:25
On Xubuntu 8.04. In Python2.5 arrow keys allowed you to scroll through
previous lines typed but with 2.6rc1 this stopped working and it's now
just typing the ^[[A^[[B^[[D^[[C characters.
msg73230 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-14 16:29
This probably has something to do with your readline build? Did you
compile Python yourself?
msg73233 - (view) Author: Daniel (Chewie) Date: 2008-09-14 19:55
Yes I did the configure / compile myself.

After reading about readline in setup I am still unable to enable it but
I guess it is not a bug in Python but more a user problem.

I am quite puzzled as to why something like this would stop being
enabled by defualt tho, pretty sure I don't know anyone who doesn't use
input history.
msg73234 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2008-09-14 20:01
ubuntu?  make sure you have the libreadline5-dev package installed. 
then make distclean && ./configure && make
msg73236 - (view) Author: Daniel (Chewie) Date: 2008-09-14 20:54
That was it.

Needed to install libreadline5-dev.

Then the default settings for readline in Modules/setup needs
uncommented (line 165 in the current version) and it works.

Thank you kindly.
History
Date User Action Args
2022-04-11 14:56:39adminsetgithub: 48119
2008-09-14 20:55:19benjamin.petersonsetstatus: open -> closed
resolution: not a bug
2008-09-14 20:54:53Chewiesetmessages: + msg73236
2008-09-14 20:01:18gregory.p.smithsetpriority: normal
nosy: + gregory.p.smith
messages: + msg73234
2008-09-14 19:55:51Chewiesetmessages: + msg73233
2008-09-14 16:29:04benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg73230
2008-09-14 16:25:15Chewiecreate