AnsiResponseParserState.cs 733 B

12345678910111213141516171819202122232425
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Describes the current state of an <see cref="IAnsiResponseParser"/>
  4. /// </summary>
  5. public enum AnsiResponseParserState
  6. {
  7. /// <summary>
  8. /// Parser is reading normal input e.g. keys typed by user.
  9. /// </summary>
  10. Normal,
  11. /// <summary>
  12. /// Parser has encountered an Esc and is waiting to see if next
  13. /// key(s) continue to form an Ansi escape sequence (typically '[' but
  14. /// also other characters e.g. O for SS3).
  15. /// </summary>
  16. ExpectingEscapeSequence,
  17. /// <summary>
  18. /// Parser has encountered Esc[ and considers that it is in the process
  19. /// of reading an ANSI sequence.
  20. /// </summary>
  21. InResponse
  22. }