Open gqqnbig opened 3 years ago
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 c28355ff87d9ef277261a22cdfa91be2789a7fd0
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.