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+candctrl+zarrive as keys instead of signals. - Records the run in
app.meta, starts enabled plugins and fires theinithook. tui.startcalls it. Call it yourself only when building the UI in code; pair it withtui.run.
See also: tui.cleanup
