fix: Fix bug in progress bar

Must entirely clear screen before printing output
This commit is contained in:
andy.boot
2023-01-22 10:18:21 +00:00
parent 187b8be2fa
commit 1e87a0661b
+1
View File
@@ -129,6 +129,7 @@ impl PIndicator {
progress_char_i += 1; progress_char_i += 1;
progress_char_i %= PROGRESS_CHARS_LEN; progress_char_i %= PROGRESS_CHARS_LEN;
} }
print!("\r{:width$}", " ", width = msg.len());
print!("\r"); print!("\r");
stdout.flush().unwrap(); stdout.flush().unwrap();
}); });