Python interactive terminal in Ubuntu Linux : some keys fouled up
casevh at gmail.com
Thu Jan 7 01:09:08 CET 2010
On Jan 6, 2:40 pm, pdlem... at earthlink.net wrote:
> Have recently moved from XP to Ubuntu Linux.
> Successfully installed Python 3.1.1 in the Ubuntu 9.04
> release on my desktop.
> Problem is the python interactive terminal >>> .
> Many of the keys now do not work.
> eg pressing left-arrow yields ^[[D
> right-arrow ^[[C
> Home ^[OH
> Del ^[[3~
> up-arrow ^[[A
> Frustrating as I use all these , esp up-arrow to
> repeat recent lines. Found the same thing on
> my sons MacBook.
> This is not mentioned in two recent Python books
> or one on Ubuntu. Nor could I found help on the www.
> Is there any work-around ? Should I just forget
> the python prompt >>> ?
> Thanks, Dave pdlem... at earthlink.net
Assuming you compiled the source code, you will also need to install
"libreadline5-dev" via Synaptic or apt-get.
More information about the Python-list