Neofetch no longer clears the screen in ascii/off modes

This commit is contained in:
Dylan Araps 2016-10-01 11:12:29 +10:00
parent 8f9b320e99
commit 580b5fd3f0
1 changed files with 12 additions and 3 deletions

View File

@ -3121,7 +3121,10 @@ main() {
trap 'printf "\033[?25h"' EXIT
# Clear the screen
clear
case "$image" in
"ascii" | "off") ;;
*) clear ;;
esac
# Hide the cursor and disable line wrap
printf "\033[?25l\033[?7l"
@ -3142,8 +3145,14 @@ main() {
displayimage
fi
# Move cursor to the top
printf "\033[0H"
printf "\033[$((${lines:-0} - 4))A"
printf "\0337"
# Move cursor to top of ascii art
case "$image" in
"ascii" | "off") printf "\0338" ;;
*) printf "\033[0H" ;;
esac
# Print the info
printinfo