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
1 changed files with 9 additions and 5 deletions

14
fetch
View File

@ -1337,11 +1337,7 @@ fi
# Disable line wrap
[ "$line_wrap" == "off" ] && printf "\e[?7l"
# Call functions and display info
colors
bold
printinfo
# Display the image
if [ "$image" != "off" ]; then
case "$image_backend" in
"w3m")
@ -1355,6 +1351,14 @@ if [ "$image" != "off" ]; then
esac
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.
if [ "$clear_terminal" == "on" ]; then
case "$os" in