pub enum Msg {
}Expand description
A robot-/CLI-addressable control message (FC-2) — the named boundary a headless
driver (or the host, or a canvas gesture) drives the console through. Applied by
Console::update, which is the only legal way to mutate the
ConsoleModel.
Variants§
PushLine(String)
The host appends a raw (ANSI) output line to the scrollback (a process’ stdout, a REPL result). Assigns the next stable id and rolls the ring.
SetInput(String)
Replace the whole in-progress input line (e.g. a paste, or a programmatic set).
InputChar(char)
Type a character at the input caret.
Backspace
Delete the character before the input caret.
Submit
Submit the current input: echo prompt+input into the scrollback, record the
command in history, clear the input, and emit Effect::RunCommand.
HistoryPrev
Recall the previous (older) history entry into the input.
HistoryNext
Recall the next (newer) history entry — past the newest returns a blank draft.
SelectLine(Option<LineId>)
Select a scrollback line by its stable id (FC-5), or clear with None.
An unknown id is ignored (guards against a stale/evicted id).
SetFilter(String)
Set the free-text find filter (searchable).
ScrollBy(f32)
Smooth-scroll the scrollback by a pixel delta.
ScrollTo(f32)
Smooth-scroll to an absolute pixel offset.
ScrollToBottom
Snap the scroll target to the bottom (newest output).
SetScrollMax(f32)
Sync the scroll extent to the laid-out content vs. viewport height. Emitted by
the pure view each frame (it is the one layout-derived
value the view cannot compute without egui); applied on the next update, so
the extent trails the content by one frame (see the crate note).
Tick(f32)
Advance the smooth-scroll animation by dt seconds (injected clock, FC-7).
SetScale(f32)
Set the render scale (clamped to [0.25, 4.0]).
SetCursor(Cursor)
Change the cursor shape.