Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFormatting fails when value-to-print is very large #607
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/python3andbpython version 0.15 on top of Python 2.7.11+ /usr/bin/python)["Hello"] * 1000Expected 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+001Bwhich 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.