From 96a35fdc8e462a6a1a9742ed45c65536b564a051 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 21 Aug 2024 11:40:44 +0200 Subject: [PATCH] spcd_banner --- spcd.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/spcd.sh b/spcd.sh index 12173e6..808d706 100644 --- a/spcd.sh +++ b/spcd.sh @@ -827,6 +827,13 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" # functions +spcd_banner() { + echo "\ +${SPCD_DOWN} +${SPCD_VERT} ${*} +${SPCD___UP}" +} + spcd_cat() { spcd_cat__file="${1}" if [ -n "${spcd_cat__file}" ]; then @@ -945,10 +952,7 @@ spcd_split() { spcd_step() { SPCD_STEP=$((SPCD_STEP + 1)) SPCD_STEP_TEXT="${*}" - echo "\ -${SPCD_DOWN} -${SPCD_VERT} ${SPCD_STEP} ${SPCD_STEP_TEXT} -${SPCD___UP}" + spcd_banner "${SPCD_STEP}" "${SPCD_STEP_TEXT}" } spcd_write() {