general: revert Fix prompt issue 2
This commit is contained in:
parent
bff6cf3b1a
commit
77282c8fea
1 changed files with 5 additions and 5 deletions
10
neofetch
10
neofetch
|
@ -4201,20 +4201,20 @@ kde_config_dir() {
|
||||||
|
|
||||||
dynamic_prompt() {
|
dynamic_prompt() {
|
||||||
[[ "$image_backend" == "off" ]] && { printf "\n"; return; }
|
[[ "$image_backend" == "off" ]] && { printf "\n"; return; }
|
||||||
[[ "$image_backend" != "ascii" ]] && { printf "%b" "\e[1000;0H"; return; }
|
[[ "$image_backend" != "ascii" ]] && ((lines+=1000))
|
||||||
|
|
||||||
# If the ascii art is taller than the info.
|
# If the ascii art is taller than the info.
|
||||||
if ((lines > info_height)); then
|
if ((lines > info_height)); then
|
||||||
prompt="$((lines - info_height + 1))"
|
lines="$((lines - info_height + 1))"
|
||||||
else
|
else
|
||||||
prompt=1
|
lines=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the prompt location.
|
# Set the prompt location.
|
||||||
if ((lines >= 1)); then
|
if ((lines >= 1)); then
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"OpenBSD") tput cud "$prompt" ;;
|
"OpenBSD") tput cud "$lines" ;;
|
||||||
*) printf "\n\n%b" "\e[${prompt}D" ;;
|
*) printf "%b" "\e[${lines}B" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue