You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a case where if the progress bar length is over 80 characters and stdout is redirected the progress bar will move up the screen overwriting previous output. As can bee seen in the screen recording. Below is screen recording and code snippet.
Reproduction
ProgressBarMovesUP.mov
Code
Note: The progress line only hit's 81 characters and displays the behavior when we 100 iterations.
use indicatif::{MultiProgress,ProgressBar,ProgressStyle};use std::thread;use std::time::Duration;fnmain(){let num_jobs:usize = 500;let display_manager = MultiProgress::new();let pb = display_manager.add(ProgressBar::new(num_jobs asu64));
pb.set_style(ProgressStyle::with_template(&format!("{{spinner}} [{{elapsed_precise}}] {{bar:.cyan}} {{pos}}/{{len}} This is a long comment in the progress "),).expect("Could not create progress bar style"),);for _ in0..num_jobs {
pb.inc(1);
thread::sleep(Duration::from_millis(10));}let _ = display_manager.println("Progress Bar Completed.");}
The text was updated successfully, but these errors were encountered:
Hi There,
I've encountered a case where if the progress bar length is over 80 characters and stdout is redirected the progress bar will move up the screen overwriting previous output. As can bee seen in the screen recording. Below is screen recording and code snippet.
Reproduction
ProgressBarMovesUP.mov
Code
Note: The progress line only hit's 81 characters and displays the behavior when we 100 iterations.
The text was updated successfully, but these errors were encountered: