Another stupid question...

Andrei Kulakov ak at silmarill.org
Wed May 29 23:46:29 EDT 2002


In article <ad03jf$te1jk$1 at ID-146704.news.dfncis.de>, Shagshag13 wrote:
> 
> Well i don't know why but i can't use up and downs key in python prompt line
> (>>>)
> I had the same trouble for erase key but after adding :
> 
> stty erase "^H"
> 
> in .bashrc, it works fine.
> 
> But i still don't know how to do it for up key (i get ^[[A) and down key
> (^[[B)
> 
> Thanks in advance,
> 
> S13.
> 
> 
You need to re-compile python with readline enabled. Uncompress
python and go to Modules dir (iirc), then edit Setup file and
uncomment line that enables readlines. (to find it, simply search
for "readline"). Then recompile.


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



More information about the Python-list mailing list