interactive mode, history

Joal Heagney s713221 at student.gu.edu.au
Sun Jul 22 08:25:54 EDT 2001


Stefan Heimann wrote:
> 
> Hi!
> 
> I have a problems with arrow keys in interactive mode. When I hit the
> up-arrow, I get ^[[A, the left-arrow produces ^[[D and so on.
> This problem occurs NOT with python 1.5 but with python 2.0 and 2.1.
> I have debian woody installed here and it doesn't matter if I invoke
> python on the console or in a xterm. I alsoe tried wterm,
> gnome-terminal and konsole from kde. With all I get the same results.
> 
> Can anyone help
> 
> Thanks stefan

If you built python 2.0 and 2.1 yourself, and the system didn't have the
development libraries for readlines present while you build, (On
Mandrake this would be readline-devel.*.rpm) python won't build with
readlines support. Install the readlines development libraries and
rebuild your executables. (Now try guess how I found THAT one out!
*grins*)
-- 
      Joal Heagney is: _____           _____
   /\ _     __   __ _    |     | _  ___  |
  /__\|\  ||   ||__ |\  || |___|/_\|___] |
 /    \ \_||__ ||___| \_|! |   |   \   \ !



More information about the Python-list mailing list