banner/top,middle,bottom

This commit is contained in:
Marc Beninca 2024-08-25 07:06:10 +02:00
parent c6c855bdac
commit 63ab82e03e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1134,9 +1134,9 @@ spcd_banner_add() {
spcd_banner_append() { spcd_banner_append() {
if [ -n "${3}" ]; then if [ -n "${3}" ]; then
SPCD_BANNER_1="${SPCD_BANNER_1}${1}" SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}"
SPCD_BANNER_2="${SPCD_BANNER_2}${2}" SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}"
SPCD_BANNER_3="${SPCD_BANNER_3}${3}" SPCD_BANNER_BOTTOM="${SPCD_BANNER_BOTTOM}${3}"
fi fi
} }
@ -1146,9 +1146,9 @@ spcd_banner_close() {
spcd_banner_echo() { spcd_banner_echo() {
echo "\ echo "\
${SPCD_BANNER_1} ${SPCD_BANNER_TOP}
${SPCD_BANNER_2} ${SPCD_BANNER_MIDDLE}
${SPCD_BANNER_3}" ${SPCD_BANNER_BOTTOM}"
} }
spcd_banner_open() { spcd_banner_open() {
@ -1160,7 +1160,7 @@ spcd_banner_split() {
} }
spcd_banner_unset() { spcd_banner_unset() {
unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3 unset SPCD_BANNER_TOP SPCD_BANNER_MIDDLE SPCD_BANNER_BOTTOM
} }
# ╭──────────┬─────╮ # ╭──────────┬─────╮