Simplify cursor position
This commit is contained in:
parent
17d17f4480
commit
fe8e15d5d6
1 changed files with 3 additions and 4 deletions
7
neofetch
7
neofetch
|
@ -2918,10 +2918,9 @@ kdeconfigdir() {
|
||||||
|
|
||||||
dynamicprompt() {
|
dynamicprompt() {
|
||||||
# Calculate image height in terminal cells.
|
# Calculate image height in terminal cells.
|
||||||
# The '+ 1' adds a gap between the prompt and the content.
|
|
||||||
if [ "$image" != "ascii" ]; then
|
if [ "$image" != "ascii" ]; then
|
||||||
lines="$((${height:-1} / ${font_height:-1} + 3))"
|
lines="$((height / font_height))"
|
||||||
cursor_yoffset="$((${yoffset:-1} / ${font_height:-1}))"
|
cursor_yoffset="$((${yoffset:-1} / font_height))"
|
||||||
else
|
else
|
||||||
cursor_yoffset="0 - 2"
|
cursor_yoffset="0 - 2"
|
||||||
fi
|
fi
|
||||||
|
@ -2942,7 +2941,7 @@ dynamicprompt() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add some padding
|
# Add some padding
|
||||||
[ "$image" == "ascii" ] && printf "\n\n"
|
printf "\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue