ansi.test.bash
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Executable
+8
@@ -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"
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user