[OpenWrt-Devel] [PATCH] [include] include: clear the line before outputting the progress message

John Szakmeister john at szakmeister.net
Wed Sep 17 14:56:53 EDT 2014


Signed-off-by: John Szakmeister <john at szakmeister.net>
---
This doesn't necessarily fix anything that's "broken", but it's
nice to actually be able to read the lines instead of them
overwriting each other.

 include/scan.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/scan.mk b/include/scan.mk
index 0998333..53676b0 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -13,7 +13,7 @@ FILELIST:=$(TMP_DIR)/info/.files-$(SCAN_TARGET)-$(SCAN_COOKIE)
 
 ifeq ($(IS_TTY),1)
   define progress
-	printf "\033[M\r$(1)" >&2;
+	printf "\033[2K\033[M\r$(1)" >&2;
   endef
 else
   define progress
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list