-
Notifications
You must be signed in to change notification settings - Fork 252
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
Finished progress bars are not preserved in MultiProgress::println
#614
Comments
MultiProgress::println
MultiProgress::println
Have you tried setting the preferred behavior using |
Yes, the same behavior |
The use std::time::Duration;
use indicatif::{MultiProgress, ProgressBar};
fn main() {
eprintln!("Finished progress bars are preserved:");
let multi = MultiProgress::new();
for _ in 0..3 {
let pg = multi.add(ProgressBar::new(5));
for _ in 0..5 {
std::thread::sleep(Duration::from_millis(100));
pg.inc(1);
}
pg.finish();
}
eprintln!("\n\nFinished progress bars are not preserved");
let mut keep = vec![];
let multi = MultiProgress::new();
for _ in 0..3 {
let pg = multi.add(ProgressBar::new(5));
keep.push(pg.clone());
for _ in 0..5 {
std::thread::sleep(Duration::from_millis(100));
pg.inc(1);
multi.println("message").unwrap();
}
pg.finish();
}
} |
Related #595 |
Thanks a lot, Chris 👍️️️️️️ |
You're welcome! And yes absolutely, that's what #595 is about :) |
MultiProgress::println
doesn't redraw finished progress bars:The text was updated successfully, but these errors were encountered: