-
-
Notifications
You must be signed in to change notification settings - Fork 245
Formatting fails when value-to-print is very large #607
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
Comments
I bet this is some nonstandard terminal formatting that curtsies is doing. I can't reproduce at the moment, but will try soon with xfce. |
/me still hasn't tried with xfce I'm guessing something's happening to the math in Curtsies such that the "Cursor Home" command that moves the cursor So probably one of the numbers in |
It turns out this is happening in my terminal too, but iTerm2 swallows the invalid sequence! It's likely a Curtsies issue, these sequence may not be doing anything important, I'll look into it more. |
I suspect this is the problem but haven't nicely reproduced it. @BenWiederhake if it's not much trouble would you try |
Appears to work, thanks :D (For fun I |
Great, I've merged that and will do a Curtsies release before long, so at least fresh installations of Curtsies will have it fixed. I'll leave this open until I've done that Curtsies release. |
A new version of curtsies has been released in the meantime. |
Reproduce with:
bpython version 0.15 on top of Python 3.5.1+ /usr/bin/python3
andbpython version 0.15 on top of Python 2.7.11+ /usr/bin/python
)["Hello"] * 1000
Expected result: boring stuff. Just the printed "value" of a list that contains a thousand "hello"s.
Actual result: The value, and then some formatting related characters that got garbled:
Note the trailing
U+001B
which smells like formatting gone wrong.I'm not sure whether this is a bug in xfce4-terminal 0.6.3, bpython, bpython-curtsies, curtsies, or maybe something else entirely. However, bpython is the only program exhibiting this behavior, so I reported it here.
The text was updated successfully, but these errors were encountered: