Command history in python shell under linux

Andrei Kulakov ak at silmarill.org
Thu May 2 07:30:50 EDT 2002


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.

> 


-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org



More information about the Python-list mailing list