EscToken(String, Char, String?) Constructor

Definition

Assembly XenoAtom.Ansi.dll

Represents a non-CSI escape sequence of the form ESC intermediates final.

public EscToken(string Intermediates, char Final, [Nullable((byte)2)] string? Raw = null)

Parameters

Intermediates
String
Final
Char
Raw
String

Remarks

In ECMA-48 / ISO/IEC 6429 terminology, this is an "escape sequence" introduced by the C0 control character ESC (U+001B). It is distinct from CSI sequences (which start with ESC [).

Examples:

  • ESC 7 (DECSC, save cursor)
  • ESC 8 (DECRC, restore cursor)
  • ESC \\ (ST, "String Terminator", used to terminate OSC/DCS/APC/PM/SOS strings)
This tokenizer keeps the token mostly syntactic so callers can decide how much to interpret.