Expand description
A deterministic in-memory Terminal for tests and examples.
ScriptedTerminal is a first-class injectable double, not a test-only escape
hatch: it plays a canned sequence of Keys or lines and records everything
written, so both the key-driven and line-driven prompt paths can be exercised
without a real terminal. Choose the interaction model with
ScriptedTerminal::key_driven or ScriptedTerminal::line_driven, queue
input with the with_* builders, then read back rendered output via
ScriptedTerminal::output.
Structsยง
- Scripted
Terminal - A scripted, in-memory terminal that replays canned input and captures output.