general: Fix prompt on openBSD

This commit is contained in:
Dylan Araps 2017-12-25 11:04:50 +11:00
parent 8c277ac74a
commit a53cbdbc14

View file

@ -4132,7 +4132,11 @@ dynamic_prompt() {
fi
# Set the prompt location.
((lines > 1)) && printf "%b" "\\e[${lines}B"
if ((lines > 1)) && [[ "$kernel_name" != "OpenBSD" ]]; then
printf "%b" "\\e[${lines}B"
else
tput cub "$lines"
fi
}
old_functions() {