[IPython-user] odd command-line navigation behavior with Python 2.5
Lev Givon
lev@columbia....
Sun May 6 19:09:11 CDT 2007
Received from Fernando Perez on Tue, Apr 24, 2007 at 12:44:24PM EDT:
> On 4/24/07, Lev Givon <lev@columbia.edu> wrote:
> >After recently upgrading to ipython 0.8.0 with Python 2.5 on Linux, I
> >observed that pasting Python code into the ipython command prompt with
> >one's mouse causes navigation keys such as the arrows and \C-a / \C-e
> >to behave strangely, i.e., if I try to move the cursor to the
> >beginning of the line, it appears to loop around back to the end of
> >the line before the beginning of the line is reached or else not move
> >any further left somewhere in the middle of the line. I have a
> >suspicion that this behavior is due to something in Python 2.5 because
> >ipython 0.7.3 displays the same symptoms when I use it with Python 2.5
> >(I had previously been using the latter version with Python 2.4
> >without any such problems). Removing my .ipython directory in either
> >case did not have any effect. Has anyone observed behavior of this
> >sort?
>
> I just tried various copy/paste operations and then used the arrow
> keys, but I can't see any problems here.
>
> Cheers,
>
> f
The locale en_US.UTF-8 is apparently the culprit; setting the locale
to en_US made the problem go away.
L.G.
More information about the IPython-user
mailing list