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

tui.init

tui.init

Takes over the terminal and prepares an empty root pane.

Notes

  • Applies the saved config, switches to raw input (stty -echo -icanon -isig -ixon -iexten), enters the alternate screen, hides the cursor, and turns on mouse tracking and bracketed paste.
  • Because of -isig, ctrl+c and ctrl+z arrive as keys instead of signals.
  • Records the run in app.meta, starts enabled plugins and fires the init hook.
  • tui.start calls it. Call it yourself only when building the UI in code; pair it with tui.run.

See also: tui.cleanup