Don't do any dynamic prompt stuff in image off mode
This commit is contained in:
parent
936f08e6a3
commit
4619eba654
1 changed files with 8 additions and 8 deletions
6
neofetch
6
neofetch
|
@ -2901,7 +2901,7 @@ kdeconfigdir() {
|
||||||
dynamicprompt() {
|
dynamicprompt() {
|
||||||
# Calculate image height in terminal cells.
|
# Calculate image height in terminal cells.
|
||||||
# The '+ 4' adds a gap between the prompt and the content.
|
# The '+ 4' adds a gap between the prompt and the content.
|
||||||
[ "$image" != "ascii" ] && [ "$image" != "off" ] && \
|
[ "$image" != "ascii" ] && \
|
||||||
lines="$((${height:-1} / ${font_height:-1} + 4))"
|
lines="$((${height:-1} / ${font_height:-1} + 4))"
|
||||||
|
|
||||||
# If the info is higher than the ascii/image place the prompt
|
# If the info is higher than the ascii/image place the prompt
|
||||||
|
@ -3299,17 +3299,17 @@ main() {
|
||||||
|
|
||||||
# Display the image if enabled
|
# Display the image if enabled
|
||||||
displayimage
|
displayimage
|
||||||
fi
|
|
||||||
|
|
||||||
# Set cursor position next to ascii art
|
# Set cursor position next to ascii art
|
||||||
printf "\033[$((${lines:-4} - ${prompt_loc:-4}))A"
|
printf "\033[$((${lines:-4} - ${prompt_loc:-4}))A"
|
||||||
|
|
||||||
# Reset horizontal cursor position
|
# Reset horizontal cursor position
|
||||||
printf "\033[9999999D"
|
printf "\033[9999999D"
|
||||||
|
fi
|
||||||
|
|
||||||
# Print the info
|
# Print the info
|
||||||
printinfo
|
printinfo
|
||||||
dynamicprompt
|
[ "$image" != "off" ] && dynamicprompt
|
||||||
|
|
||||||
# Re-enable line wrap
|
# Re-enable line wrap
|
||||||
printf "%b%s" "\033[?7h"
|
printf "%b%s" "\033[?7h"
|
||||||
|
|
Loading…
Reference in a new issue