|
|
@ -2,7 +2,32 @@ |
|
|
|
|
|
|
|
|
. "$MIAOU_BASH_DIR/lib/ansi.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" |
|
|
|
|
|
|
|
|
TYPE='SUBSHELL TERM' |
|
|
|
|
|
PAYLOAD='blabla' |
|
|
|
|
|
|
|
|
|
|
|
stack_sources=('file.bash' './lib/utility.bash' 'file.bash') |
|
|
|
|
|
stack_lines=(18 56 12) |
|
|
|
|
|
stack_functions=('f2' 'f1' '<main>') |
|
|
|
|
|
|
|
|
|
|
|
BG=RED |
|
|
|
|
|
FG=BLACK |
|
|
|
|
|
PADDING=2 |
|
|
|
|
|
content=$(style_ansi "${TYPE}") |
|
|
|
|
|
content=$(style_padding "$content") |
|
|
|
|
|
detail=$(BG=BLACK style_padding "${PAYLOAD}") |
|
|
|
|
|
style_block "$content$detail" |
|
|
|
|
|
|
|
|
|
|
|
# block continuation |
|
|
|
|
|
tput sc |
|
|
|
|
|
tput cuu 1 |
|
|
|
|
|
style_ansi "\t╦" |
|
|
|
|
|
tput rc |
|
|
|
|
|
|
|
|
|
|
|
style_ansi "\t║" |
|
|
|
|
|
echo |
|
|
|
|
|
|
|
|
|
|
|
for i in "${!stack_sources[@]}"; do |
|
|
|
|
|
style_ansi "\t╟" |
|
|
|
|
|
# echo "─⟶ ${sources[$i]}:${lines[$i]} in ${functions[$i]}" |
|
|
|
|
|
printf "─⟶ %40s\t%s\n" "${stack_sources[$i]}:${stack_lines[$i]}" "${stack_functions[$i]}" |
|
|
|
|
|
done |