StandardModeToken
Namespace: Hex1b.Tokens
Assembly: Hex1b.dll
Represents a CSI standard (non-private) mode set/reset command: ESC [ mode h/l
csharp
public sealed record StandardModeToken : AnsiToken, IEquatable<AnsiToken>, IEquatable<StandardModeToken>Inheritance
Object → AnsiToken → StandardModeToken
Implements
Constructors
StandardModeToken(int, bool)
Represents a CSI standard (non-private) mode set/reset command: ESC [ mode h/l
Parameters:
Mode(Int32): The standard mode number.Enable(Boolean): True for 'h' (set/enable), false for 'l' (reset/disable).
csharp
public StandardModeToken(int Mode, bool Enable)Properties
Enable
True for 'h' (set/enable), false for 'l' (reset/disable).
Returns: Boolean
csharp
public bool Enable { get; init; }Mode
The standard mode number.
Returns: Int32
csharp
public int Mode { get; init; }Remarks
Standard modes defined in ECMA-48: 4 = IRM (Insert/Replace Mode) — insert mode when set, replace when reset20 = LNM (Automatic Newline) — LF implies CR when set
These differ from private modes (CSI ? n h/l) which use the '?' prefix.