Expand description
Seven built-in steps with corpus parity, ported to the
InMemorySession-style Session trait.
Each step mirrors termproof/builtin_steps.py exactly:
wait_for_text— searchscreenthenraw_outputindependently viaSession::wait_for_text(Result<bool, SessionError>).wait_for_idle— stable-screen detection viaSession::wait_for_idle.send_text/send_line— feed child stdin (send_lineappends\r).press— named-key /Ctrl-mapping delegated toSession::press.sleep— wall-clock sleep +read_available(0)drain.wait_for_regex— regex validation, timeout validation (NaN/Inf/<=0, non-numeric), independent screen/raw search without synthetic\nboundary, and evidence detail that matchesbuiltin_steps.py::_format_matchbyte-for-byte (named groups, positional groups, full match).
Functions§
- dispatch
- Dispatch a single step by its
actionfield. - press
press— send a named key orCtrl-combo.- run_
steps - Run a sequence of steps, stopping on first failure (matches Python’s
VerificationRunner._run_pty/_run_processif not passed: break). - send_
line send_line— feedtext + "\r"(defaulttextis""as in Python).- send_
text send_text— feedtextverbatim (no newline).- sleep
sleep— wall-clock sleep thenread_available(0)drain.- wait_
for_ idle wait_for_idle— screen has been stable forstable_seconds.- wait_
for_ regex wait_for_regex— regex validation, timeout validation, streaming poll.- wait_
for_ text wait_for_text— pollscreenandraw_outputfortext.