1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #nullable enable
- namespace Terminal.Gui;
- /// <summary>
- /// Describes a finished ANSI received from the console.
- /// </summary>
- public class AnsiEscapeSequenceResponse
- {
- /// <summary>
- /// Error received from e.g. see
- /// <see>
- /// <cref>EscSeqUtils.CSI_SendDeviceAttributes.Request</cref>
- /// </see>
- /// </summary>
- public required string Error { get; init; }
- /// <summary>
- /// Response received from e.g. see
- /// <see>
- /// <cref>EscSeqUtils.CSI_SendDeviceAttributes.Request</cref>
- /// </see>
- /// .
- /// </summary>
- public required string Response { get; init; }
- /// <summary>
- /// <para>
- /// The terminator that uniquely identifies the type of response as responded
- /// by the console. e.g. for
- /// <see>
- /// <cref>EscSeqUtils.CSI_SendDeviceAttributes.Request</cref>
- /// </see>
- /// the terminator is
- /// <see>
- /// <cref>EscSeqUtils.CSI_SendDeviceAttributes.Terminator</cref>
- /// </see>
- /// </para>
- /// <para>
- /// The received terminator must match to the terminator sent by the request.
- /// </para>
- /// </summary>
- public required string Terminator { get; init; }
- /// <summary>
- /// The value expected in the response e.g.
- /// <see>
- /// <cref>EscSeqUtils.CSI_ReportTerminalSizeInChars.Value</cref>
- /// </see>
- /// which will have a 't' as terminator but also other different request may return the same terminator with a
- /// different value.
- /// </summary>
- public string? Value { get; init; }
- }
|