Commit 070843d2 authored by Dylan Araps's avatar Dylan Araps

Clear screen later

parent 2b7ff346
...@@ -2085,6 +2085,8 @@ getimage() { ...@@ -2085,6 +2085,8 @@ getimage() {
[ "${#term_size}" -le 5 ] && err "Your terminal doesn't support \\\033[14t, falling back to ascii mode." [ "${#term_size}" -le 5 ] && err "Your terminal doesn't support \\\033[14t, falling back to ascii mode."
return return
else
clear
fi fi
# Get terminal lines and columns # Get terminal lines and columns
...@@ -3127,12 +3129,6 @@ main() { ...@@ -3127,12 +3129,6 @@ main() {
# If the script exits for any reason, unhide the cursor. # If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h"' EXIT trap 'printf "\033[?25h"' EXIT
# Clear the screen
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"
......
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