From 5607dcc72c98f12b0ea0692cb076e19d4b91d49e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 4 Apr 2023 17:29:04 +0200 Subject: [PATCH] Print Progressbar to stdout --- schemsearch-cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemsearch-cli/src/main.rs b/schemsearch-cli/src/main.rs index f17f263..e63f62b 100644 --- a/schemsearch-cli/src/main.rs +++ b/schemsearch-cli/src/main.rs @@ -248,7 +248,7 @@ fn main() { let bar = ProgressBar::new(schematics.len() as u64); bar.set_style(ProgressStyle::with_template("[{elapsed}, ETA: {eta}] {wide_bar} {pos}/{len} {per_sec}").unwrap()); - bar.set_draw_target(ProgressDrawTarget::stderr_with_hz(5)); + bar.set_draw_target(ProgressDrawTarget::stdout_with_hz(5)); let matches: Vec = schematics.par_iter().progress_with(bar).map(|schem| { match schem {