Skip to main content

Crate cerno_tui

Crate cerno_tui 

Source
Expand description

Terminal front end for the cerno service.

The parts are split so that everything deciding what happens can be tested without a terminal: draft parses the fields, app holds the state and builds the request through the SDK’s own builder, session remembers the last one, and render does the drawing.

Modules§

app
Application state and the transitions the key handler drives.
draft
A question as it is being typed, before it becomes a request.
editor
The modal for adding or changing one question.
keys
Turning key presses into state changes.
render
Drawing.
session
Remembering the last request across restarts.