command history in the interpreter?

William Park parkw at better.net
Sat May 20 20:29:49 CEST 2000


On Sat, May 20, 2000 at 05:57:07PM +0000, alex k wrote:
> hello
> 
> 
> i had python1.52 in linux/mandrake7. when i pressed the uparrow at the
> console i could access the command history, so to speak. just like in
> bash.
> 
> now i use slackware7. i installed both python1.52 and python1.6 (the
> former replacing the latter). it didn't work in none of them.
> all of the arrowkeys type things like ^[[C  ^[[D and such.
> 
> the python interpreter in win98 (1.52 and 1.6) also don't give me the
> history function.
> 
> anyone who has an idea on how to make that work again?
> it's so awkward now that i can't even edit the txt without deleting it
> (backspace).
> 
> is that feature hidden somewhere in the interpreter, or did mandrake
> somehow add it themselves?
> 
>     thanks in adv. / alex

Search for 'readline' in 'Setup.in', and uncomment it.  By the way, my
Python from Slackware-7.0 is able to do command-line editing.

--William




More information about the Python-list mailing list