ExpectMatch Type
What a `PtySession.ExpectAsync` pattern matched, plus everything the child emitted before it — the output a prompt was preceded by (a banner, a menu, an error line), which is usually what the script wants to inspect or log. Both are consumed from the session's window, so the next `ExpectAsync` starts after this match and can never match the same prompt twice.
Instance members
| Instance member |
Description
|
Full Usage:
this.Before
Returns: string
|
Everything received before the match, since the previous `ExpectAsync` consumed its own match. Capped by the session's `WindowChars`: on a child that emitted more than that between the two patterns, the oldest part has already been evicted (`Transcript` still has the fuller record).
|
Full Usage:
this.Text
Returns: string
|
The text the pattern matched.
|
ProcessKit API Reference