Skip to main content

Module form

Module form 

Source
Expand description

A profile’s form: text fields, the output choice, the “Default profile” box and the buttons. A pure state machine: receives keys and draws lines, without touching the terminal.

Structs§

Form

Enums§

FormEvent
What the form asks of whoever drives it.

Constants§

CANCEL
DEFAULT
NAME
OUTPUT
SAVE
TEST

Functions§

window
Trims the lines to fit the height, keeping the focused line in view, and adds the footer.