Expand description
Output readiness detection — determines when a shell is waiting for input.
Three strategies for detecting that a shell process has finished producing output and is waiting for the next command:
- Timeout: pure silence-based — if N ms pass with no output, we assume ready.
- Prompt: regex-based — scan the tail of output for known prompt patterns.
- Hybrid: try prompt detection first, fall back to silence timeout.
The check() method is stateless and designed for polling loops — the caller
owns the timers, we just evaluate the current snapshot.
Structs§
- Readiness
Detector - Stateless readiness evaluator — called repeatedly in a polling loop.
Enums§
- Readiness
Result - Result of a readiness check
- Readiness
Strategy - The strategy for detecting when a shell is ready for input.