horizontal

This commit is contained in:
Marc Beninca 2024-06-04 20:23:34 +02:00
parent 35eba2088a
commit d868285484
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
cd.sh
View file

@ -576,7 +576,7 @@ local path
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\ cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
$(cd_echo CD_OS_ID CD_OS_VERSION) $(cd_echo CD_OS_ID CD_OS_VERSION)
$(cd_echo CD_OPEN CD_SHUT CD_SPLIT) $(cd_echo CD_HORIZONTAL CD_OPEN CD_SHUT CD_SPLIT)
" "
# #
cd_split cd_split
@ -702,9 +702,9 @@ cd_split () {
cd_step () { cd_step () {
CD_STEP=$((CD_STEP+1)) CD_STEP=$((CD_STEP+1))
echo -n "\ echo -n "\
${CD_BOX_DOWN}${CD_BOX_HORIZONTAL} ${CD_BOX_DOWN}${CD_HORIZONTAL}
${CD_BOX_VERTICAL} ${CD_STEP} ${@} ${CD_BOX_VERTICAL} ${CD_STEP} ${@}
${CD_BOX_UP}${CD_BOX_HORIZONTAL} ${CD_BOX_UP}${CD_HORIZONTAL}
" "
} }
@ -722,7 +722,7 @@ local text="${2}"
# constants # constants
CD_BOX_DOWN="╭" CD_BOX_DOWN="╭"
CD_BOX_HORIZONTAL="─╌╌┄┄┈┈" CD_BOX_HORIZONTAL="─"
CD_BOX_LEFT="╴" CD_BOX_LEFT="╴"
CD_BOX_RIGHT="╶" CD_BOX_RIGHT="╶"
CD_BOX_UP="╰" CD_BOX_UP="╰"
@ -744,9 +744,10 @@ CD_PM_APT="apt"
CD_PM_DNF="dnf" CD_PM_DNF="dnf"
CD_PM_PACMAN="pacman" CD_PM_PACMAN="pacman"
CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈"
CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}" CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}"
CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}" CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}"
CD_SPLIT="${CD_BOX_RIGHT}${CD_BOX_HORIZONTAL}" CD_SPLIT="${CD_BOX_RIGHT}${CD_HORIZONTAL}"
# run # run
cd_main "${@}" cd_main "${@}"