Skip to main content

Module runtime

Module runtime 

Source
Expand description

Terminal IO loop. Sets up raw mode + alt screen, draws frames, polls events, restores terminal state on exit.

This is the only file in the crate that talks to the terminal directly. Everything else is pure and unit-tested.

Functions§

run
The chord table a modal state resolves against — the same mapping the host uses. Needed by the AP.0.2 fall-through to ask the trie which layer bound a declined chord.
spawn_on_lsp_runtime
Phase 5.5.LSP.1: spawn a fire-and-forget future on the shared LSP runtime. Used by the App’s + host’s per-feature LSP dispatchers so the request awaits the actor’s response off the main UI thread; the result flows back through a per- feature mpsc channel that the App drains before each draw.