spcd_banner_add
This commit is contained in:
parent
55051830ac
commit
9eb9e69934
1 changed files with 9 additions and 5 deletions
14
spcd/main.sh
14
spcd/main.sh
|
@ -827,11 +827,15 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
|||
|
||||
# functions
|
||||
|
||||
spcd_banner() {
|
||||
echo "\
|
||||
${SPCD_DOWN}
|
||||
${SPCD_VERT} ${*}
|
||||
${SPCD___UP}"
|
||||
spcd_banner_add() {
|
||||
if [ -n "${1}" ]; then
|
||||
spcd_ba__text=" ${1} "
|
||||
spcd_ba__length=${#spcd_ba__text}
|
||||
spcd_ba__filler="$(spcd_fill "${spcd_ba__length}" ─)"
|
||||
SPCD_BANNER_1="${SPCD_BANNER_1}${spcd_ba__filler}"
|
||||
SPCD_BANNER_2="${SPCD_BANNER_2}${spcd_ba__text}"
|
||||
SPCD_BANNER_3="${SPCD_BANNER_3}${spcd_ba__filler}"
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_cat() {
|
||||
|
|
Loading…
Reference in a new issue