From 80544007aadb03dc5278a94a3c1baea9e18fdf1f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Oct 2008 22:23:24 +0200 Subject: bin/pkg: clear_line: Use escape codes (faster, less code and better for debugging!) --- bin/pkg | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3