Mpdreamz / shellprogressbar

ShellProgressBar - display progress in your console application
MIT License
1.44k stars 134 forks source link

Only keep 10 child spawns #34

Closed zHaytam closed 4 years ago

zHaytam commented 5 years ago

Hello,

I have a task that spawns 165 tasks (sequentially) and I would like to keep the history of tasks finished, but when spawning more than what the window can handle, sometimes the new child shows, sometimes it doesn't (but the program is still working and ticking).

Is there a way to limit the number of children to like 10? And only collapse old ones when the limit was reached?

Thank you!

zHaytam commented 5 years ago

For now, I'm using the following workaround:

This makes old children collapse since DrawChildren checks Collapse.

Mpdreamz commented 4 years ago

Hi @zHaytam

Sorry for the late reply I think the new WriteLine() in 4.3.0 is a good way to print a summary of the completed task above the progressbar, this will also survive any collapsing.

Closing this because its an older issue (my bad). Let me know if this is something you still want, happy to learn more.