Skip to main content

Module nms

Module nms 

Source
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§

ConsoleState
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§

format_result
Render an RPC envelope into scrollback lines. Today this is a verbatim line split; it is the single seam a future value pretty-printer replaces without touching call sites.