Skip to content
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

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

Closed
Zac-Hodge opened this issue Jun 26, 2024 · 2 comments
Labels

Comments

@Zac-Hodge
Copy link

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):

  • Enlighten Version: 1.12.4
  • OS and version: Windows 10
  • Console application: Command Prompt, Windows PowerShell, VS Code Terminal
  • Special Conditions: N/A

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

@Zac-Hodge Zac-Hodge added the bug label Jun 26, 2024
@avylove
Copy link
Contributor

avylove commented Jun 26, 2024

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.

@avylove
Copy link
Contributor

avylove commented Dec 2, 2024

Added FAQ entry in 1.13.0

I'm not sure we'll be able to do more than that. So I'm going to go ahead and close this.

@avylove avylove closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants