mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
fix: Fix bug in progress bar
Must entirely clear screen before printing output
This commit is contained in:
@@ -129,6 +129,7 @@ impl PIndicator {
|
||||
progress_char_i += 1;
|
||||
progress_char_i %= PROGRESS_CHARS_LEN;
|
||||
}
|
||||
print!("\r{:width$}", " ", width = msg.len());
|
||||
print!("\r");
|
||||
stdout.flush().unwrap();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user