parent
ad23eb5180
commit
428d6aebf4
1 changed files with 10 additions and 10 deletions
|
@ -69,7 +69,7 @@ _spcd_banner_add() {
|
|||
spcd_ba__filler="$(
|
||||
_spcd_fill "${spcd_ba__length}" "${_SPCD_BANNER_HORIZONTAL}"
|
||||
)"
|
||||
if [ -n "${SPCD_BANNER_MIDDLE}" ]; then
|
||||
if [ -n "${__SPCD_BANNER_MIDDLE}" ]; then
|
||||
_spcd_banner_split
|
||||
else
|
||||
_spcd_banner_open
|
||||
|
@ -97,17 +97,17 @@ _spcd_banner_add_index() {
|
|||
|
||||
_spcd_banner_append() {
|
||||
if [ -n "${3}" ]; then
|
||||
SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}"
|
||||
SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}"
|
||||
SPCD_BANNER_BOTTOM="${SPCD_BANNER_BOTTOM}${3}"
|
||||
__SPCD_BANNER_TOP="${__SPCD_BANNER_TOP}${1}"
|
||||
__SPCD_BANNER_MIDDLE="${__SPCD_BANNER_MIDDLE}${2}"
|
||||
__SPCD_BANNER_BOTTOM="${__SPCD_BANNER_BOTTOM}${3}"
|
||||
fi
|
||||
}
|
||||
|
||||
_spcd_banner_echo() {
|
||||
echo "\
|
||||
${SPCD_BANNER_TOP}
|
||||
${SPCD_BANNER_MIDDLE}
|
||||
${SPCD_BANNER_BOTTOM}"
|
||||
${__SPCD_BANNER_TOP}
|
||||
${__SPCD_BANNER_MIDDLE}
|
||||
${__SPCD_BANNER_BOTTOM}"
|
||||
}
|
||||
|
||||
_spcd_banner_open() {
|
||||
|
@ -151,9 +151,9 @@ _spcd_banner_split() {
|
|||
|
||||
_spcd_banner_wipe() {
|
||||
unset \
|
||||
SPCD_BANNER_TOP \
|
||||
SPCD_BANNER_MIDDLE \
|
||||
SPCD_BANNER_BOTTOM
|
||||
__SPCD_BANNER_TOP \
|
||||
__SPCD_BANNER_MIDDLE \
|
||||
__SPCD_BANNER_BOTTOM
|
||||
}
|
||||
|
||||
# ╭───────────┬───────╮
|
||||
|
|
Loading…
Reference in a new issue