summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-24 17:20:07 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-24 17:20:07 +0200
commit178cefd0e570e36f566a9268a195894d6ef43cc1 (patch)
tree07ce37a75e61e1fa5c296aceefbc6f204505be6b
parent40f3ef6ec5949f32cc8b03e4806b0f6a2097fef6 (diff)
pkg: progress: Clear line immediately before redrawing for smoother display
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 07853d5..f5f6805 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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
}