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

When multibar progress bar content length shrinks, content becomes distored #59

Closed
KieranP opened this issue Mar 25, 2025 · 1 comment
Closed
Labels

Comments

@KieranP
Copy link

KieranP commented Mar 25, 2025

Describe the problem

When the lines become shorter (as ETA decreases), some lines have odd characters at the end.

Image

(note lines 3, 9, and 13 have extra characters at the end because their contents shrunk)

Steps to reproduce the problem

Use this formatting string and spin up multiple progress bars updated within a collection of threads.

Time: :elapsed - ETA: :eta - Progress: :percent (:current of :total)

Actual behaviour

(note lines 3, 9, and 13 have extra characters at the end because their contents shrunk)

Expected behaviour

If contents shrink, should rerender the line so that those extra characters aren't there.

Describe your environment

  • Ruby version: 3.4.2
  • TTY::ProgressBar version: 0.14.0
@KieranP KieranP added the bug label Mar 25, 2025
@KieranP
Copy link
Author

KieranP commented Mar 25, 2025

Due to #60, I was using older version.

Appears to be fixed in latest version. Closing ticket.

@KieranP KieranP closed this as completed Mar 25, 2025
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

1 participant