mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
If images and ascii are off, don't clear the terminal
This commit is contained in:
4
fetch
4
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
|
||||
|
||||
Reference in New Issue
Block a user