Problem with keyboard up/down arrows in Python 2.4 interpreter

Benjamin Kaplan benjamin.kaplan at case.edu
Fri Mar 25 03:00:18 EDT 2011


On Fri, Mar 25, 2011 at 2:25 AM, Julien <jphalip at gmail.com> wrote:
> On Mar 22, 5:37 pm, Benjamin Kaplan <benjamin.kap... at case.edu> wrote:
>> On Tue, Mar 22, 2011 at 2:27 AM, Julien <jpha... at gmail.com> wrote:
>> > Hi,
>>
>> > I'm having problems when typing the up/down arrows in the Python 2.4
>> > interpreter (exact version: Python 2.4.6 (#1, Mar  3 2011, 15:45:53)
>> > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin).
>>
>> > When I press the up arrow it outputs "^[[A" and when I press the down
>> > arrow it outputs "^[[B".
>>
>> > I've google it and it looks like it might be an issue with the
>> > readline not being installed or configured properly. Is that correct?
>> > If so, how can I fix this issue?
>>
>> > Many thanks.
>>
>> > Kind regards,
>>
>> > Julien
>> > --
>>
>> How did you install Python? If you used Macports, it looks like
>> readline support is a separate port for 2.4. Try installing
>> py-readline.
>>
>>
>>
>>
>>
>>
>>
>> >http://mail.python.org/mailman/listinfo/python-list
>
> Hi,
>
> Which readline package should I install? I've tried with 'pip install
> py-readline' but that package doesn't seem to exist. I've tried with
> 'pyreadline' (without the dash) but that didn't fix the issue.
>
> Many thanks,
>
> Julien

As I stated above, py-readline is for if you're using Macports, which
is a package manager for Mac OS X.  If you installed Python through
some other means, I'm not sure why you don't have readline installed
already, because it should be built with the rest of the Python
modules.


> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list