Commit 580b5fd3 authored by Dylan Araps's avatar Dylan Araps

Neofetch no longer clears the screen in ascii/off modes

parent 8f9b320e
...@@ -3121,7 +3121,10 @@ main() { ...@@ -3121,7 +3121,10 @@ main() {
trap 'printf "\033[?25h"' EXIT trap 'printf "\033[?25h"' EXIT
# Clear the screen # Clear the screen
clear case "$image" in
"ascii" | "off") ;;
*) clear ;;
esac
# Hide the cursor and disable line wrap # Hide the cursor and disable line wrap
printf "\033[?25l\033[?7l" printf "\033[?25l\033[?7l"
...@@ -3142,8 +3145,14 @@ main() { ...@@ -3142,8 +3145,14 @@ main() {
displayimage displayimage
fi fi
# Move cursor to the top printf "\033[$((${lines:-0} - 4))A"
printf "\033[0H" printf "\0337"
# Move cursor to top of ascii art
case "$image" in
"ascii" | "off") printf "\0338" ;;
*) printf "\033[0H" ;;
esac
# Print the info # Print the info
printinfo printinfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment