Skip to main content

Crate vvv_tui

Crate vvv_tui 

Source
Expand description

The interactive interface of vvv: modes of panels — search as the hub, then rename, move, rewrite and history, each with its own layout and keys.

The surface is Tui: give it an Engine, say which editor e opens and whether to colour, and Tui::run takes the terminal until the user quits. Everything else is private and Elm-shaped so it can be tested without a terminal: Model is plain data, Model::update is pure and returns the Effects it wants run, Worker runs them against the engine on its own thread and answers with Events. Mode views render their state through typed screen callbacks; shared views lay out report rows. Only Tui::run touches the terminal — and the editor.

Structs§

Tui
One interactive session over an engine.

Enums§

Error
A session ended early: the terminal, the engine, or the editor failed.