Method ExpectResponse | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
ExpectResponse(string?, Action<string?>, Action?, bool)
Notifies the parser that you are expecting a response to come in with the given terminator
(i.e. because you have sent an ANSI request out).
void ExpectResponse(string? terminator, Action<string?> response, Action? abandoned, bool persistent)
Parameters
terminator
string
The terminator you expect to see on response.
Callback to invoke when the response is seen in console input.
abandoned
Action
persistent
bool
true if you want this to persist permanently and be raised for every event matching the terminator
.
Exceptions
If trying to register a persistent request for a terminator that already has one. exists.