ipython/ipython — Issue #915: OS X Lion Terminal.app line wrap problem
Author: radeksz
Created: 2011-10-21 09:17:08+00:00
State: open

I have a problem with deadline on Mac OS X Lion, ipython 0.11, python 2.7.2. When wrapping the input line the line prompt isn't taken into account properly. It gets all messy when I press delete in the long line.

The amount of "error" per line is dependent on the length of the prompt. If I make the prompt one character longer, the first line is wrapped one character "later".

Example:

ipython --colors=NoColor
Python 2.7.2 (default, Aug 16 2011, 18:48:22)
Type "copyright", "credits" or "license" for more information.

IPython 0.11 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: 012345678901234567890123456789012345678901234567890123456789012345678901
2345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678

I have a readline installed:

[Radek ~]$ fink list|grep readline
i	readline5	5.0-1006	Comfortable terminal input library
i	readline5-shlibs	5.0-1006	Comfortable terminal input library