diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-24 17:20:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-24 17:20:07 +0200 |
commit | 178cefd0e570e36f566a9268a195894d6ef43cc1 (patch) | |
tree | 07ce37a75e61e1fa5c296aceefbc6f204505be6b | |
parent | 40f3ef6ec5949f32cc8b03e4806b0f6a2097fef6 (diff) |
pkg: progress: Clear line immediately before redrawing for smoother display
-rwxr-xr-x | bin/pkg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,13 +213,13 @@ function progress { (( j > 0 )) && output+=$2 } } - clear_line c=$(( currentper/5 )) a=$(( 20-c )) output+="${c_info}$desc${c_reset} [" item $c '=' item $a ' ' output+="] $currentper% $desc2" + clear_line echo -ne $output } |