New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X Lion Terminal.app line wrap problem #915
Comments
I don't have this issue using the homebrew version of python 2.7.2 (and readline 6.2.1). |
What Python does have this problem? If homebrew Python doesn't have it for you, and System Python doesn't appear to have it for me. And how are you causing the problem - is it resizing the window, or just typing out a long line that it waits too long to wrap? |
Fink Python 2.7.2 (version 1:2.7.2-4) and Lion system python (Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)) do not have this problem, only ipython (fink installation ipython-py27, 0.11-3). It's typing a long line that causes this "late" wrap, no resizing of the window needed. Colors of the prompt have no influence on the wrap. |
Interesting. Can you run a standard dist or git master of IPython with your System or Fink Pythons? You can use Another thing you might test is launching without readline:
I don't think IPython configures anything about line wrapping, but I'm definitely not sure about that. |
I did run ipython from git (0.12dev) and the problem persists (as of 23 October 2011) when ipython is run with fink python 2.7.2. When I manually disable readline in 0.12dev with
After "fixing" the crash (changing the offending line to Problem disappears for system (Lion) python 2.7.1, but with some readline warnings.
|
Sorry, that readline crash is due to a small omission in a recent PR, fix is forthcoming. Frankly, it sounds like a bug in Fink Python. What happens if you just do:
from Fink Python, and then enter more than a line? |
The
|
I think I identified the problem, it's the
My temporary fix includes changing
The problem doesn't occur on system (Lion) python. I guess I should file a bug report for readline (fink version 5.0-1006)? |
Indeed it is the readline library that causes problems. http://sourceforge.net/mailarchive/message.php?msg_id=28278097 |
Thanks for narrowing it down! Perhaps you can install the python-readline package, which links against current gnu readline:
If you do that |
I'm still experiencing this issue. Homebrew has picked this up in Homebrew/legacy-homebrew#30751 where another user posted a video that show similar behavior with readline in R. As of 7/2014, the GNU Readline project are looking into it, but I don't think there have been any updates. Perhaps this is a regression on their end. |
I'm this other user, can we get an official readline rollback in Homebrew? This affects more than Python — everything uses readline. |
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:
I have readline installed:
The text was updated successfully, but these errors were encountered: