From f289ccd85d7e1ed77efd5b4e7c883f6a3e308a2f Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 5 Jan 2016 12:01:51 +1100 Subject: [PATCH] Clear the terminal using printf instead of clear --- fetch.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fetch.sh b/fetch.sh index 8957b386..bfac6f16 100755 --- a/fetch.sh +++ b/fetch.sh @@ -883,11 +883,8 @@ printinfo () { # Get image [ "$images" == "on" ] && getimage -# Hide the terminal cursor -printf "\e[?25l" - -# Clear the terminal -clear +# Clear the terminal and hide the cursor +printf "\e[?25l\033c\e[?25l" # Disable line wrap [ $line_wrap == "off" ] && printf '\e[?7l'