display.sh: made separator() more harmonious

This commit is contained in:
levasseur
2021-12-17 16:43:18 +01:00
parent 0f70c955e0
commit 768fd0ffde

View File

@@ -131,6 +131,9 @@ separator()
echo -ne "$BYellow" echo -ne "$BYellow"
local i=0 local i=0
declare -li length=$(( $(tput cols) - 1 )) declare -li length=$(( $(tput cols) - 1 ))
if [[ $length -gt 80 ]]; then
length=$(( $length - (($length - 80) / 2) ))
fi
for i in $(seq 1 $length); do for i in $(seq 1 $length); do
echo -n "-" echo -n "-"
done done