Browse Source

ansi functions library

main
pvincent 1 week ago
parent
commit
2e28b462f1
  1. 4
      lib/ansi.bash

4
lib/ansi.bash

@ -48,10 +48,12 @@ function style_block {
length=$(ansi_length "$content") length=$(ansi_length "$content")
length=$((length + 2)) length=$((length + 2))
top=$(
builtin echo -n "╔" builtin echo -n "╔"
for _ in $(seq 1 "${length}"); do builtin echo -n '═'; done for _ in $(seq 1 "${length}"); do builtin echo -n '═'; done
builtin echo "╗" builtin echo "╗"
)
builtin echo "${top}"
builtin echo "$content" builtin echo "$content"
builtin echo -n "╚" builtin echo -n "╚"

Loading…
Cancel
Save