mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-06 07:04:03 +00:00
Display the image before the text and reset cursor position before printing text
This commit is contained in:
14
fetch
14
fetch
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user