spcd_banner_append
This commit is contained in:
parent
e87d66c3a9
commit
f1f5004e2a
1 changed files with 5 additions and 5 deletions
10
spcd/main.sh
10
spcd/main.sh
|
@ -1075,12 +1075,12 @@ spcd_banner_add() {
|
|||
spcd_ba__text=" ${1} "
|
||||
spcd_ba__length=${#spcd_ba__text}
|
||||
spcd_ba__filler="$(spcd_fill "${spcd_ba__length}" ─)"
|
||||
spcd_banner_add_123 \
|
||||
spcd_banner_append \
|
||||
"${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}"
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_banner_add_123() {
|
||||
spcd_banner_append() {
|
||||
if [ -n "${3}" ]; then
|
||||
SPCD_BANNER_1="${SPCD_BANNER_1}${1}"
|
||||
SPCD_BANNER_2="${SPCD_BANNER_2}${2}"
|
||||
|
@ -1089,7 +1089,7 @@ spcd_banner_add_123() {
|
|||
}
|
||||
|
||||
spcd_banner_close() {
|
||||
spcd_banner_add_123 "╮" "${SPCD_VERT}" "╯"
|
||||
spcd_banner_append "╮" "${SPCD_VERT}" "╯"
|
||||
}
|
||||
|
||||
spcd_banner_echo() {
|
||||
|
@ -1100,11 +1100,11 @@ ${SPCD_BANNER_3}"
|
|||
}
|
||||
|
||||
spcd_banner_open() {
|
||||
spcd_banner_add_123 "${SPCD_BOX_DOWN}" "${SPCD_VERT}" "${SPCD_BOX_UP}"
|
||||
spcd_banner_append "${SPCD_BOX_DOWN}" "${SPCD_VERT}" "${SPCD_BOX_UP}"
|
||||
}
|
||||
|
||||
spcd_banner_split() {
|
||||
spcd_banner_add_123 "┬" "${SPCD_VERT}" "┴"
|
||||
spcd_banner_append "┬" "${SPCD_VERT}" "┴"
|
||||
}
|
||||
|
||||
spcd_banner_unset() {
|
||||
|
|
Loading…
Reference in a new issue