rule,split

This commit is contained in:
Marc Beninca 2024-08-25 22:19:00 +02:00
parent bdb645eb91
commit 9e38e7224d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -172,6 +172,14 @@ spcd_frame_shut() {
echo "${SPCD_FRAME_UP_AND_RIGHT}${1}"
}
# ╭──────────┬──────╮
# │ internal │ rule │
# ╰──────────┴──────╯
SPCD_RULE_HORIZONTAL="─"
SPCD_RULE_LEFT="╴"
SPCD_RULE_RIGHT="╶"
# ╭──────────┬──────╮
# │ internal │ step │
# ╰──────────┴──────╯
@ -262,6 +270,14 @@ spcd_os_rm() {
fi
}
# ╭───────────┬───────╮
# │ functions │ split │
# ╰───────────┴───────╯
spcd_split() {
echo "${SPCD_RULE_RIGHT}${SPCD_RULE_HORIZONTAL}${SPCD_RULE_LEFT}"
}
# ╭───────────┬──────╮
# │ functions │ step │
# ╰───────────┴──────╯
@ -1193,10 +1209,6 @@ spcd_sed() {
fi
}
spcd_split() {
echo "${SPCD_SPLT}"
}
spcd_write() {
spcd_write__file="${1}"
spcd_write__text="${2}"
@ -1210,15 +1222,9 @@ spcd_write() {
# constants
SPCD_BOX_RIGHT="╶"
SPCD_PYTHON_VENV="/opt/venv"
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
SPCD_SPLT="${SPCD_BOX_RIGHT}${SPCD_HORIZONTAL}"
# ╭──────╮
# │ main │
# ╰──────╯