mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-05 14:49:04 +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)
|
columns=$(tput cols)
|
||||||
|
|
||||||
# Clear the terminal and hide the cursor
|
# Clear the terminal and hide the cursor
|
||||||
clear
|
[ "$image" != "off" ] && clear
|
||||||
printf "\033[?25l"
|
printf "\033[?25l"
|
||||||
|
|
||||||
# Get the image
|
# Get the image
|
||||||
@@ -1942,7 +1942,7 @@ colors
|
|||||||
bold
|
bold
|
||||||
|
|
||||||
# Move the cursor to the top and display the info
|
# Move the cursor to the top and display the info
|
||||||
printf "\033[0H"
|
[ "$image" != "off" ] && printf "\033[0H"
|
||||||
printinfo
|
printinfo
|
||||||
|
|
||||||
# Move the cursor to the bottom and Show the cursor
|
# Move the cursor to the bottom and Show the cursor
|
||||||
|
|||||||
Reference in New Issue
Block a user