horizontal
This commit is contained in:
parent
35eba2088a
commit
d868285484
1 changed files with 6 additions and 5 deletions
11
cd.sh
11
cd.sh
|
@ -576,7 +576,7 @@ local path
|
|||
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
|
||||
$(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
|
||||
|
@ -702,9 +702,9 @@ cd_split () {
|
|||
cd_step () {
|
||||
CD_STEP=$((CD_STEP+1))
|
||||
echo -n "\
|
||||
${CD_BOX_DOWN}${CD_BOX_HORIZONTAL}
|
||||
${CD_BOX_DOWN}${CD_HORIZONTAL}
|
||||
${CD_BOX_VERTICAL} ${CD_STEP} ${@}
|
||||
${CD_BOX_UP}${CD_BOX_HORIZONTAL}
|
||||
${CD_BOX_UP}${CD_HORIZONTAL}
|
||||
"
|
||||
}
|
||||
|
||||
|
@ -722,7 +722,7 @@ local text="${2}"
|
|||
# constants
|
||||
|
||||
CD_BOX_DOWN="╭"
|
||||
CD_BOX_HORIZONTAL="─╌╌┄┄┈┈"
|
||||
CD_BOX_HORIZONTAL="─"
|
||||
CD_BOX_LEFT="╴"
|
||||
CD_BOX_RIGHT="╶"
|
||||
CD_BOX_UP="╰"
|
||||
|
@ -744,9 +744,10 @@ CD_PM_APT="apt"
|
|||
CD_PM_DNF="dnf"
|
||||
CD_PM_PACMAN="pacman"
|
||||
|
||||
CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈"
|
||||
CD_OPEN="${CD_BOX_DOWN}${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
|
||||
cd_main "${@}"
|
||||
|
|
Loading…
Reference in a new issue