From 0e35c57e217f011f831d5212faae5cee635fca46 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Jan 2016 17:05:42 +1100 Subject: [PATCH] If images and ascii are off, don't clear the terminal --- fetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index d62daa51..0534b186 100755 --- a/fetch +++ b/fetch @@ -1914,7 +1914,7 @@ trap 'printf "\033[?25h"; clear; exit' 2 columns=$(tput cols) # Clear the terminal and hide the cursor -clear +[ "$image" != "off" ] && clear printf "\033[?25l" # Get the image @@ -1942,7 +1942,7 @@ colors bold # Move the cursor to the top and display the info -printf "\033[0H" +[ "$image" != "off" ] && printf "\033[0H" printinfo # Move the cursor to the bottom and Show the cursor