EscSeqReqStatus.cs 962 B

123456789101112131415161718192021222324252627
  1. namespace Terminal.Gui.Drivers;
  2. /// <summary>
  3. /// Represents the status of an ANSI escape sequence request made to the terminal using
  4. /// <see cref="EscSeqRequests"/>.
  5. /// </summary>
  6. /// <remarks></remarks>
  7. public class EscSeqReqStatus
  8. {
  9. /// <summary>Creates a new state of escape sequence request.</summary>
  10. /// <param name="terminator">The terminator.</param>
  11. /// <param name="numReq">The number of requests.</param>
  12. public EscSeqReqStatus (string terminator, int numReq)
  13. {
  14. Terminator = terminator;
  15. NumRequests = NumOutstanding = numReq;
  16. }
  17. /// <summary>Gets the number of unfinished requests.</summary>
  18. public int NumOutstanding { get; internal set; }
  19. /// <summary>Gets the number of requests.</summary>
  20. public int NumRequests { get; internal set; }
  21. /// <summary>Gets the Escape Sequence Terminator (e.g. ESC[8t ... t is the terminator).</summary>
  22. public string Terminator { get; }
  23. }