You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
713 B
33 lines
713 B
#!/usr/bin/env miaou-bash
|
|
|
|
. "$MIAOU_BASH_DIR/lib/ansi.bash"
|
|
|
|
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
|