general: Fix prompt on openBSD
This commit is contained in:
parent
beee0203d0
commit
21cc7bab93
1 changed files with 5 additions and 4 deletions
9
neofetch
9
neofetch
|
@ -4132,10 +4132,11 @@ dynamic_prompt() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the prompt location.
|
# Set the prompt location.
|
||||||
if ((lines > 1)) && [[ "$kernel_name" != "OpenBSD" ]]; then
|
if ((lines > 1)); then
|
||||||
printf "%b" "\\e[${lines}B"
|
case "$kernel_name" in
|
||||||
else
|
"OpenBSD") tput cud "$lines" ;;
|
||||||
tput cud "$lines"
|
*) printf "%b" "\\e[${lines}B" ;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue