Interface IAnsiResponseParser
When implemented in a derived class, allows watching an input stream of characters (i.e. console input) for ANSI response sequences.
public interface IAnsiResponseParser
Properties
- State
Current state of the parser based on what sequence of characters it has read from the console input stream.
Methods
- 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).
- IsExpecting(string)
Returns true if there is an existing expectation (i.e. we are waiting a response from console) for the given
terminator
.
- StopExpecting(string, bool)
Removes callback and expectation that we will get a response for the given
. Use to give up on very old requests e.g. if you want to send a different one with the same terminator.