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

tui.get.style

tui.get.style ID FIELD [STATE]

Prints one resolved style field of a pane or widget.

Parameters

  • FIELD: fg, bg or mods.
  • STATE: normal (default), focus, border, title, hover, checked, unchecked. A state with no rules falls back to normal.

Returns: 2 and a message on stderr for any other FIELD.

See also: tui.style.sgr (fork-free), tui.get.class.style