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() {