bad behaviour in interactive Python prompt

K

~km

Hi,

I'm experiencing a strange behaviour of the Python prompt when using
the
four arrow keys ( not the VIM' nor Emacs' ones ;-) ). Instead of
getting
the previous and next command respectively I get ugly characters. See
it
yourself:
http://tinypic.com/view.php?pic=m78cgp&s=3

This is not directly Python-specific, but you feel quite handicapped
if
you must rewrite each command again... so my obvious question is:

How can I fix this? Please, let me know if you can tell me something.

Additional information:
I'm running Ubuntu Linux
I've tried the python prompt in several shell environments and got the
same issue in csh, dash... all negative.

Cheers,
Kenny
 
M

Mark Dickinson

I'm experiencing a strange behaviour of the Python prompt when using
the
four arrow keys ( not the VIM' nor Emacs' ones ;-) ). Instead of
getting
the previous and next command respectively I get ugly characters. See
it
yourself:http://tinypic.com/view.php?pic=m78cgp&s=3

This is not directly Python-specific, but you feel quite handicapped
if
you must rewrite each command again... so my obvious question is:

How can I fix this? Please, let me know if you can tell me something.

Additional information:
I'm running Ubuntu Linux
I've tried the python prompt in several shell environments and got the
same issue in csh, dash... all negative.

Where did your version of Python 2.6 come from?

If you built your copy of Python 2.6 from source, then the problem is
probably that either the readline library is missing, or (much more
likely) the include files for the readline library are missing. Look
for a package called something like libreadline5-dev or readline-devel
and install it, and then try rebuilding Python.

Mark
 
K

~km

Where did your version of Python 2.6 come from?

If you built your copy of Python 2.6 from source, then the problem is
probably that either the readline library is missing, or (much more
likely) the include files for the readline library are missing.  Look
for a package called something like libreadline5-dev or readline-devel
and install it, and then try rebuilding Python.

Mark

Yes, I built it from source and never thought that there might be such
a library. Now I've re-compiled and my problem is solved!

Have many thanks Mark, and Chris Rebert, too, who responded to my
deleted post, which I've received per mail. Sorry for that incidence.

Cheers,
Kenny
 
K

~km

Where did your version of Python 2.6 come from?

If you built your copy of Python 2.6 from source, then the problem is
probably that either the readline library is missing, or (much more
likely) the include files for the readline library are missing.  Look
for a package called something like libreadline5-dev or readline-devel
and install it, and then try rebuilding Python.

Mark

Yes, I built it from source and never thought that there might be such
a library. Now I've re-compiled and my problem is solved!

Have many thanks Mark, and Chris Rebert, too, who responded to my
deleted post, which I've received per mail. Sorry for that incidence.

Cheers,
Kenny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top