Fix incorrect cursor position when using small ascii art
This commit is contained in:
parent
7f5f05b441
commit
abf9b5d257
6
neofetch
6
neofetch
|
@ -1995,8 +1995,10 @@ getascii() {
|
||||||
ascii="${ascii_distro,,}"
|
ascii="${ascii_distro,,}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$ascii_logo_size" == "small" ] && \
|
if [ "$ascii_logo_size" == "small" ]; then
|
||||||
ascii="${ascii/ *}_small"
|
ascii="${ascii/ *}_small"
|
||||||
|
prompt_loc="3"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "/usr/share/neofetch/ascii/distro/${ascii/ *}" ]; then
|
if [ -f "/usr/share/neofetch/ascii/distro/${ascii/ *}" ]; then
|
||||||
ascii="/usr/share/neofetch/ascii/distro/${ascii/ *}"
|
ascii="/usr/share/neofetch/ascii/distro/${ascii/ *}"
|
||||||
|
@ -3244,7 +3246,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set cursor position next to ascii art
|
# Set cursor position next to ascii art
|
||||||
printf "\033[$((${lines:-0} - 4))A"
|
printf "\033[$((${lines:-0} - ${prompt_loc:-4}))A"
|
||||||
|
|
||||||
# Reset horizontal cursor position
|
# Reset horizontal cursor position
|
||||||
printf "\033[9999999D"
|
printf "\033[9999999D"
|
||||||
|
|
Reference in New Issue