-
Notifications
You must be signed in to change notification settings - Fork 179
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
Wrapping bug in connection with terminal size #40
Comments
So the root cause is how carriage return behaves after the terminal autowraps. The simple solution I went with was to overload writeln() to wrap the printed line in escapes to disable and then re-enable autowrap: print('\x1b[?7l' + line + '\x1b[?7h', end='', file=self.file) This however had the undesirable side-effect of truncating the line in a non-obvious way (fine as an individual fix, but not for default behaviour). Options that I'd imagine would be nicer:
|
@shannonfenn truncating the line sounds better as a default behavior then the terminal going crazy and emitting lots of progress bar lines. I was investigating the effect this bug has on Is there some way I can help push this towards a fix? |
facing the same issue in Termux (android / smartphone terminal), noticed that depending on the terminal size the "newline" bug appears. |
Hi,
the following code triggers a wrapping bug in connection with the terminal size:
This is the output on a 87x40 terminal (the bug "starts" at value 10):
This is the output on a maximized terminal:
The text was updated successfully, but these errors were encountered: