-
Notifications
You must be signed in to change notification settings - Fork 136
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
ProgressBar.WriteLine doesn't show recent messages #79
Comments
I tried to make a fix but ProgressBar.cs has way few comments that I can't figure out the purpose of variables. |
I noticed that as time would go on, the progress bar would slowly "eat" up the spaces above it and it would overwrite anything that's above it |
I can't replicate this on Linux, won't be able to test this on Windows for a while. |
(Replaces previous comment) This problem occurs (only) on windows because the windows console allows a BufferHeight > WindowHeight (causing a vertical scrollbar to appear). This also means that Console.WindowsTop will change when scrolling starts and that Console.CursorTop will be between Console.WindowTop and Console.WindowTop+Console.WindowHeight On other platforms setting the Bufferheight will throw an exception. Getting it will return WindowHeight |
I will use a built-in test case as an example. I expect the built-in test case to work out of box.
Steps to reproduce:
clone this project and checkout c28355f
apply this patch
Expected:
I expect to see
Report 15 to console above the progressbar
up to
Report 1000 to console above the progressbar
,etc. while the progrss bar is running.
Actual
Latest messages don't show. See the screenshot.
The text was updated successfully, but these errors were encountered: