display.sh: made separator() more harmonious
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user