Command history in python shell under linux

Stephen Boulet stephen at theboulets.net
Thu May 2 09:55:59 EDT 2002


Where is readline support enabled?

I tried running './configure --help' in the source directory for python, but 
readline wasn't one of the options...

-- Stephen

Andrei Kulakov wrote:

> In article <ud1ejor35646c6 at corp.supernews.com>, Stephen Boulet wrote:
>> When I hit the up arrow in the python shell, I get:
>> 
>>   ^[[A
>> 
>> How do I set up things so that I get the previous command? Thanks.
>> 
>> -- Stephen
>> 
>> My versions:
>> 
>> $ rpm -qa | grep python
>> python-imaging-1.1.2-4mdk
>> libpython2.2-2.2-9mdk
>> pythonlib-1.28-1mdk
>> python-base-2.2-9mdk
>> python-2.2-9mdk
>> python-numeric-20.3-2mdk
>> python-docs-2.2-9mdk
>> rpm-python-4.0.3-10mdk
>> libpython2.2-devel-2.2-9mdk
>>
> I don't know about RH, but you can compile your python with readline
> module. You have to get python source file and edit Modules/Setup file
> and uncomment the readlines.c line.



More information about the Python-list mailing list