D.A.B.Tv0.0.17 Tutorial API DABT Tools ↗ GitHub ↗

tui.style.sgr

tui.style.sgr ID [STATE]

Resolves the style of a widget or pane into variables, without a subshell.

Sets: TUI_SGR (escape prefix), TUI_FG, TUI_BG. TUI_RESET always holds \e[0m.

Example

tui.style.sgr log title
tui.output_append log "${TUI_SGR}== section ==${TUI_RESET}"