tui.glyph.get
tui.glyph.get TYPE KEY [VARIANT]
Resolves a themeable glyph into TUI_GLYPH, without a subshell: the variant’s value, else the base type’s, else the built-in default.
Parameters
TYPE,KEY- the slot, e.g.progressfill. Themes set it with.progress { fill: "█"; }.VARIANT- optional design name, set with.progress.thin { fill: "━"; }.
Notes
- A glyph is a quoted, single-cell string. Control characters, wide glyphs and
;are not accepted (an empty string only for the bracket slots below); the rule is skipped and a warning is logged. - Slots:
progress.fillprogress.empty;checkbox.leftcheckbox.oncheckbox.offcheckbox.right;select.leftselect.arrowselect.right;scrollbar.thumbscrollbar.track;panebar.vthumbpanebar.vtrackpanebar.hthumbpanebar.htrack(the vertical and horizontal scrollbars of scrolling panes; a blank thumb is drawn reversed). - The
leftandrightslots may be set to""for a look without brackets. Widgets pick their variant withtui.variant.
Sets: TUI_GLYPH
Example
tui.glyph.get progress fill thin
printf '%s' "$TUI_GLYPH"
