|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
. "$MIAOU_BASH_DIR/lib/ansi.bash" |
|
|
. "$MIAOU_BASH_DIR/lib/ansi.bash" |
|
|
|
|
|
|
|
|
|
|
|
CODE=118 |
|
|
TYPE='SUBSHELL TERM' |
|
|
TYPE='SUBSHELL TERM' |
|
|
PAYLOAD='blabla' |
|
|
PAYLOAD='blabla' |
|
|
stack_sources=('file.bash' './lib/utility.bash' 'file.bash') |
|
|
stack_sources=('file.bash' './lib/utility.bash' 'file.bash') |
|
|
@ -21,10 +22,13 @@ function ansi_block_error { |
|
|
FG=BLACK |
|
|
FG=BLACK |
|
|
PADDING=2 |
|
|
PADDING=2 |
|
|
|
|
|
|
|
|
|
|
|
local content detail exit_code |
|
|
|
|
|
|
|
|
content=$(style_ansi "${TYPE}") |
|
|
content=$(style_ansi "${TYPE}") |
|
|
content=$(style_padding "$content") |
|
|
content=$(style_padding "$content") |
|
|
detail=$(BG=BLACK style_padding "${PAYLOAD}") |
|
|
detail=$(BG=BLACK style_padding "${PAYLOAD}") |
|
|
style_block "$content$detail" |
|
|
|
|
|
|
|
|
exit_code=$(FG=WHITE style_ansi " ${CODE}") |
|
|
|
|
|
style_block "$content$detail$exit_code" |
|
|
|
|
|
|
|
|
ansi_reset |
|
|
ansi_reset |
|
|
} |
|
|
} |
|
|
|