Display the image before the text and reset cursor position before printing text

This commit is contained in:
Dylan 2016-01-19 17:08:00 +11:00
parent f26d2870cb
commit 0ae45fb404

14
fetch
View file

@ -1337,11 +1337,7 @@ fi
# Disable line wrap # Disable line wrap
[ "$line_wrap" == "off" ] && printf "\e[?7l" [ "$line_wrap" == "off" ] && printf "\e[?7l"
# Call functions and display info # Display the image
colors
bold
printinfo
if [ "$image" != "off" ]; then if [ "$image" != "off" ]; then
case "$image_backend" in case "$image_backend" in
"w3m") "w3m")
@ -1355,6 +1351,14 @@ if [ "$image" != "off" ]; then
esac esac
fi fi
# Get colors / bold
colors
bold
# Move the cursor to the top and display the info
tput cup 0
printinfo
# Move cursor to bottom and redisplay it. # Move cursor to bottom and redisplay it.
if [ "$clear_terminal" == "on" ]; then if [ "$clear_terminal" == "on" ]; then
case "$os" in case "$os" in