Python interactive terminal in Ubuntu Linux : some keys fouled up

t r z e w i c z e k trzewiczek at
Thu Jan 7 08:22:53 CET 2010

On Thu, 07 Jan 2010 01:09:08 +0100, casevh <casevh at> wrote:

> On Jan 6, 2:40 pm, pdlem... at 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
> Assuming you compiled the source code, you will also need to install
> "libreadline5-dev" via Synaptic or apt-get.
> casevh

Or you can use Idle instead of terminal. It works kind of different.

sudo apt-get install idle-python3.1

will do the thing!


Using Opera's revolutionary e-mail client:

More information about the Python-list mailing list