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

Progress display issue #2

Open
Zeek05 opened this issue Feb 4, 2022 · 1 comment
Open

Progress display issue #2

Zeek05 opened this issue Feb 4, 2022 · 1 comment

Comments

@Zeek05
Copy link
Contributor

Zeek05 commented Feb 4, 2022

The progress bar will create a mess if it is more than 3 less the maximum bar width.
The progress function should be using the maximum width of the screen (82 cells in the example below), however it is not.
On the call of the function, there is also a space before the [ in the bar.

Mode 82,25 For /l %%A in (0,1,1000) do (Call Progress 82 %%A 1000)

Will generate:
image
Notice the space on the far left as well.

The current workaround is to have your progress bar length be at least N-3 where N is the length of your CMD.

@TheKvc
Copy link
Member

TheKvc commented Feb 15, 2022

Yes, this is a known issue. I wanted to integrate the auto checking of the screen size - but sometimes MODE command delays the result. So, I kept this up to the user to manage the numbers.

but, your concern makes sense to me. Is there any plugin (apart from MODE) which can spit out console size without much delay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants