ansi.test.bash

This commit is contained in:
pvincent
2026-07-18 14:52:10 +04:00
parent df8b0ac5d7
commit 3b3827a533
3 changed files with 9 additions and 2 deletions
-1
View File
@@ -94,6 +94,5 @@ function style_block {
for _ in $(seq 1 "${length}"); do builtin echo -n '═'; done for _ in $(seq 1 "${length}"); do builtin echo -n '═'; done
builtin echo "╝" builtin echo "╝"
) )
style_ansi "${bottom}" && echo style_ansi "${bottom}" && echo
} }
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env miaou-bash
. "$MIAOU_BASH_DIR/lib/ansi.bash"
content=$(BG=RED FG=BLACK style_ansi "SUBSHELL TERM")
content=$(PADDING=2 BG=RED style_padding "$content")
detail=$(PADDING=1 style_padding "blabla")
PADDING=2 BG=RED FG=BLACK style_block "$content$detail"
+1 -1
View File
@@ -9,8 +9,8 @@ readonly BASEDIR
function do_subshell_term { function do_subshell_term {
# grep nope nope # grep nope nope
echo "found=$(grep nope nope)"
echo "found=$(command_not_found)" echo "found=$(command_not_found)"
echo "found=$(grep nope nope)"
command_not_found command_not_found
} }