Closed DanielHartl closed 4 years ago
This should address issue #36 and #24
Hi, I tested this solution, it spawns a child correctly, BUT the ResetToBottom Function will fail to clean up children if cursorTop > windowHeight (since cusorTop reflects to the buffer and windowHeight to the window itself), so that the Child will not be cleaned up. Maybe the windowHeight should be the sum of Console.WindowHeight und Console.WindowTop? Best Regards Krisztian
Since I do not have the privileges to commit, I just made some minor adjustments in order to get ResetToBottom to work when Console.CursorTop is > Console.WindowHeight.
Here are my changes highlighted:
@KrisztianKaszas if you can submit a PR for this that would be greatly appreciated :+1:
Or @DanielHartl if you could update your PR of course :smile_cat:
+1 for this change, would be helpful for my use case.
Thank you @DanielHartl @KrisztianKaszas sorry for taking long to get this in.
I took this PR and extended it with: https://github.com/Mpdreamz/shellprogressbar/pull/57
Which is now on master
will look at releasing this soon.
…s should be shown when progressbar is on bottom of the screen