|
|
@ -207,16 +207,15 @@ function ansi_block_continuation { |
|
|
function ansi_block_error { |
|
|
function ansi_block_error { |
|
|
FG=BLACK |
|
|
FG=BLACK |
|
|
BG=RED |
|
|
BG=RED |
|
|
PADDING=2 |
|
|
|
|
|
local content detail exit_code |
|
|
local content detail exit_code |
|
|
|
|
|
|
|
|
content=$(style_ansi "$1") |
|
|
content=$(style_ansi "$1") |
|
|
content=$(style_padding "$content") |
|
|
|
|
|
|
|
|
content=$(PADDING=2 style_padding "$content") |
|
|
|
|
|
|
|
|
detail="$2" |
|
|
detail="$2" |
|
|
[[ -n "$detail" ]] && detail=$(BG=BLACK FG=WHITE PADDING_LEFT=4 style_padding "$2") |
|
|
|
|
|
|
|
|
[[ -n "$detail" ]] && detail=$(BG=BLACK FG=WHITE PADDING=2 style_padding "$2") |
|
|
|
|
|
|
|
|
exit_code=$(FG=CYAN style_ansi "$3") |
|
|
|
|
|
|
|
|
exit_code=$(FG=CYAN PADDING=2 style_padding "$3") |
|
|
builtin echo -en "\r" |
|
|
builtin echo -en "\r" |
|
|
BLOCK_CONTINUATION_COL=5 style_block "$content$detail$exit_code" |
|
|
BLOCK_CONTINUATION_COL=5 style_block "$content$detail$exit_code" |
|
|
ansi_reset |
|
|
ansi_reset |
|
|
|