From 63ab82e03ee6e84cdd7f1d3bc0d1216abac1dfa4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 07:06:10 +0200 Subject: [PATCH] banner/top,middle,bottom --- spcd/main.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 5b1b34c..c66e9d9 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -1134,9 +1134,9 @@ spcd_banner_add() { spcd_banner_append() { if [ -n "${3}" ]; then - SPCD_BANNER_1="${SPCD_BANNER_1}${1}" - SPCD_BANNER_2="${SPCD_BANNER_2}${2}" - SPCD_BANNER_3="${SPCD_BANNER_3}${3}" + SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}" + SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}" + SPCD_BANNER_BOTTOM="${SPCD_BANNER_BOTTOM}${3}" fi } @@ -1146,9 +1146,9 @@ spcd_banner_close() { spcd_banner_echo() { echo "\ -${SPCD_BANNER_1} -${SPCD_BANNER_2} -${SPCD_BANNER_3}" +${SPCD_BANNER_TOP} +${SPCD_BANNER_MIDDLE} +${SPCD_BANNER_BOTTOM}" } spcd_banner_open() { @@ -1160,7 +1160,7 @@ spcd_banner_split() { } spcd_banner_unset() { - unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3 + unset SPCD_BANNER_TOP SPCD_BANNER_MIDDLE SPCD_BANNER_BOTTOM } # ╭──────────┬─────╮