spcd_banner_wipe

This commit is contained in:
Marc Beninca 2024-08-24 12:16:43 +02:00
parent 37668ac488
commit 89998d8a65
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -828,6 +828,7 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
# functions
spcd_banner() {
spcd_banner_wipe
spcd_banner_open
#
spcd_banner__index="${SPCD_STEP}"
@ -848,6 +849,7 @@ spcd_banner() {
${SPCD_BANNER_1}
${SPCD_BANNER_2}
${SPCD_BANNER_3}"
spcd_banner_wipe
}
spcd_banner_add() {
@ -873,7 +875,6 @@ spcd_banner_close() {
}
spcd_banner_open() {
unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3
spcd_banner_add_123 "${SPCD_BOX_DOWN}" "${SPCD_VERT}" "${SPCD_BOX_UP}"
}
@ -881,6 +882,10 @@ spcd_banner_split() {
spcd_banner_add_123 "┬" "${SPCD_VERT}" "┴"
}
spcd_banner_wipe() {
unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3
}
spcd_cat() {
spcd_cat__file="${1}"
if [ -n "${spcd_cat__file}" ]; then