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

tui.require

tui.require LIBRARY

Sources an optional bundled library once per process.

Parameters

  • LIBRARY: terminal_renderer, terminal_controls or tui_scan.

Returns: 1 and a message on stderr for an unknown name.

Notes

  • Callback files are re-sourced on every page visit. Use tui.require there instead of source so a large library is loaded only once.

Example

tui.require terminal_renderer
tui.output stats "$(table_string 'Name|Size' 'a.txt|1k')"