summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-07 22:23:24 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-07 22:23:24 +0200
commit80544007aadb03dc5278a94a3c1baea9e18fdf1f (patch)
tree112c73b379fe5976a2e8a32d532f3ea71477b191
parent4d01ea7a6930a99a46c7e8472eb98d51264e2449 (diff)
bin/pkg: clear_line: Use escape codes (faster, less code and better for debugging!)
-rwxr-xr-xbin/pkg7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/pkg b/bin/pkg
index f432167..5199751 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -29,12 +29,7 @@ check_valid () {
}
clear_line () {
- string="\r"
- for char in {0..80}; {
- string+=' '
- }
- string+="\r"
- echo -ne $string
+ echo -ne "\r\e[2K"
}
# Read local configuration