IAnsiResponseParser.cs 526 B

12345678910111213141516
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. public interface IAnsiResponseParser
  4. {
  5. AnsiResponseParserState State { get; }
  6. void ExpectResponse (string terminator, Action<string> response);
  7. /// <summary>
  8. /// Returns true if there is an existing expectation (i.e. we are waiting a response
  9. /// from console) for the given <paramref name="requestTerminator"/>.
  10. /// </summary>
  11. /// <param name="requestTerminator"></param>
  12. /// <returns></returns>
  13. bool IsExpecting (string requestTerminator);
  14. }