Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-30-2007, 03:45 AM   #1
Registered: Jun 2006
Distribution: Ubuntu 7.04 Feisty
Posts: 79

Rep: Reputation: 15
how to configure keyboard in python command prompt

i can't use 'del' 'arrow keys' while inside python

it displays some mess
>>> ^[[A^[[C^[[B^[[B^[[A^[[D^[[B^[[A
Old 05-31-2007, 02:20 PM   #2
LQ Newbie
Registered: Nov 2006
Location: Canada
Distribution: Slackware 11, DSL (Debian), Ubuntu 8.04 (Hardy Heron), Smoothwall, Ophcrack & BackTrack2
Posts: 21

Rep: Reputation: 15
readline support in python


Sounds like no readline support in python, which O/S version are you using? I've heard of readline support not being enabled within certain builds of python (Solaris).

Try this, start python from the command line..

># python
>>> import readline
If it throws an error message or complains, you may have an incomplete installation of python, it may be best to rebuild python again to enable readline support.

Hope that helps,
Old 06-01-2007, 12:38 AM   #3
Registered: Jun 2006
Distribution: Ubuntu 7.04 Feisty
Posts: 79

Original Poster
Rep: Reputation: 15
yes it displays error message

>>> import readline
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named readline
but i installed python from the source code available at
do i need something else to check or can the module be installed independently

one more question "import gtk" also displays error message
i downloaded the module and tried to install it but displays error message

checking for a Python interpreter with version >= 2.3.5... none
configure: error: no suitable Python interpreter found

thanks for your help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard useless at YAMON prompt. ashlesha Linux - Software 0 07-25-2006 04:12 PM
how to configure GUI from linux prompt mediaworld Linux - Newbie 2 05-25-2006 01:08 PM
Command line/ command prompt saiinch Linux - Newbie 5 03-17-2006 03:29 AM
How to configure Konsole bash prompt? lasindi Linux - Software 6 01-16-2005 06:38 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM

All times are GMT -5. The time now is 11:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration