Commit 21cc7bab authored by Dylan Araps's avatar Dylan Araps

general: Fix prompt on openBSD

parent beee0203
...@@ -4132,10 +4132,11 @@ dynamic_prompt() { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment