diff --git a/spcd/main.sh b/spcd/main.sh index c66e9d9..a902f05 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -1097,6 +1097,11 @@ spcd_fill() { # │ internal │ banner │ # ╰──────────┴────────╯ +SPCD_BANNER=1 +SPCD_BANNER_HORIZONTAL="─" +SPCD_BANNER_DOWN_AND_HORIZONTAL="┬" +SPCD_BANNER_UP_AND_HORIZONTAL="┴" + spcd_banner() { spcd_banner_unset spcd_banner_open @@ -1126,7 +1131,9 @@ spcd_banner_add() { if [ -n "${1}" ]; then spcd_ba__text=" ${1} " spcd_ba__length=${#spcd_ba__text} - spcd_ba__filler="$(spcd_fill "${spcd_ba__length}" ─)" + spcd_ba__filler="$( + spcd_fill "${spcd_ba__length}" "${SPCD_BANNER_HORIZONTAL}" + )" spcd_banner_append \ "${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}" fi @@ -1156,7 +1163,10 @@ spcd_banner_open() { } spcd_banner_split() { - spcd_banner_append "┬" "${SPCD_VERT}" "┴" + spcd_banner_append \ + "${SPCD_BANNER_DOWN_AND_HORIZONTAL}" \ + "${SPCD_VERT}" \ + "${SPCD_BANNER_UP_AND_HORIZONTAL}" } spcd_banner_unset() {