almost fix return 0

This commit is contained in:
pvincent
2026-07-24 10:43:42 +04:00
parent 9817730d7f
commit 452bca5e90
3 changed files with 25 additions and 39 deletions
+2 -9
View File
@@ -14,9 +14,7 @@ stack_functions=('f2' 'f1' '<main>')
# tput rc
# FG=RED style_ansi "\t║\n"
# }
function strip_ansi {
echo "$1" | sed -E 's/\x1b\[[0-9;]*[a-zA-Z]//g'
}
function ansi_block_error {
BG=RED
FG=BLACK
@@ -62,10 +60,5 @@ declare -F style_ansi >/dev/null || source "$MIAOU_BASH_DIR/lib/ansi.bash"
echo START
output=$(BG=RED style_ansi "╔")
output=$(strip_ansi "$output")
echo "$output"
# echo "$output" | cat -v
# echo -n "standard flow:" && show_error
echo -n "standard flow:" && show_error
# echo -n "starting subshell: $(show_error)"