-
Notifications
You must be signed in to change notification settings - Fork 77
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
Unfinished output during progress bar printing leads to missing output. #1948
Comments
related / duplicate of #1946 ? |
Yes this may very well be the cause of #1946 because:
More buffering can also fix #1946 but not #1948, while fixing #1948 will also fix #1946. |
An additional issue in fixing the current bug is that the progress bar outputstream is to be thread-safe. This means that there can be multiple currently unfinished lines at the same time, coming from the output of different threads. A fix for #1948 should take that into account. |
Done the fix in my head already; which is quite simple a (mini) buffer for the last unfinished lines of every thread.
|
This way the cursor will always be at the start of the line before a progress bar is printed, or before any other output is printed. |
Describe the bug
If during the use of the progress bar monitor output is printed that does not end with a newline, then currently that output (the last line of it to be precise) is lost the moment the next version of the progress bars are printed.
Causes:
\r
; however this was to mitigate the effect of the half printed lines. Without the\r
the output would become very messy since the right border of the progress bar would start printing on the next line. This would lead to progressive mayhem and make everything unreadable. TL;DR; the\r
was a mitigation to help make it workable until a real solution was found.The text was updated successfully, but these errors were encountered: