Interface IAnsiResponseParser | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
When implemented in a derived class, allows watching an input stream of characters (i.e. console input) for ANSI response sequences (mouse input, cursor, query responses etc.).
public interface IAnsiResponseParser
Properties
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).
Returns true if there is an existing expectation (i.e. we are waiting a response from console) for the given terminator
.
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.