Rockhopper-Technologies / enlighten

Enlighten Progress Bar for Python Console Apps
https://python-enlighten.readthedocs.io
Mozilla Public License 2.0
416 stars 25 forks source link

Output gets scrambled when the number of progress bars exceeds the terminal height #68

Open Zac-Hodge opened 4 months ago

Zac-Hodge commented 4 months ago

Describe the bug When the number of progress bars (status/progress/counter) exceeds the height of the terminal the output gets scrambled. Ideally you should just be able to scroll up to view them (and any prints/output). This feels like it could be a known limitation but it would be good to see it acknowledged somewhere.

To Reproduce Run the 'multiprocessing_queues.py' example with a really short terminal (or increase the number of processes/bars).

Environment (please complete the following information):

Additional context Thanks for making Enlighten! I've really enjoyed using it!

avylove commented 4 months ago

Thanks for reporting! I'm not sure if scroll back is possible. The bars are drawn within the scroll region and the start of the scroll region is limited to the size of the terminal. At least Enlighten limits it this way, but I don't even think you can pass negative numbers to CSR. It might be worth experimenting a bit. For now, we can probably add something in the FAQ.

Potentially, on some platforms (Probably not Windows), you could increase the terminal height if there are more bars than there is room for, but it's hard to say how that could effect end users.