AnsiResponseParserState.cs 656 B

123456789101112131415161718192021222324
  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
  14. /// </summary>
  15. ExpectingBracket,
  16. /// <summary>
  17. /// Parser has encountered Esc[ and considers that it is in the process
  18. /// of reading an ANSI sequence.
  19. /// </summary>
  20. InResponse
  21. }