Expand description
Console tab state: an interactive nomiscript REPL.
This module holds the pure console state — the input editor, a
multi-line pending form buffer (filled until a balanced form is
read), a bounded scrollback transcript, and a command history. The
async eval bridge (ConsoleEval) lives in a sibling module; this
file is intentionally I/O-free so it can be unit-tested without a
runtime or a database.
Structs§
- Console
State - Pure state for the Console tab.
Constants§
- MAX_
HISTORY_ ENTRIES - Maximum number of submitted forms retained for history navigation. As with scrollback, a long-lived session must not retain unbounded submitted-form text, so the oldest entries are dropped past this cap.
- MAX_
SCROLLBACK_ LINES - Maximum number of scrollback lines retained. A long-lived SSH session must not grow memory without bound, so older lines are dropped once this cap is reached.
Functions§
- align_
rows - Pad each column in
rowsto the maximum width in that column and join cells with two spaces. Emptyrowsyields an emptyVec. - format_
result - Render an RPC response envelope into scrollback lines.