ClearLineToken
Namespace: Hex1b.Tokens
Assembly: Hex1b.dll
Represents a CSI Erase in Line command (EL): ESC [ mode K or Selective Erase in Line (DECSEL): ESC [ ? mode K
csharp
public sealed record ClearLineToken : AnsiToken, IEquatable<AnsiToken>, IEquatable<ClearLineToken>Inheritance
Object → AnsiToken → ClearLineToken
Implements
Constructors
ClearLineToken(ClearMode, bool)
Represents a CSI Erase in Line command (EL): ESC [ mode K or Selective Erase in Line (DECSEL): ESC [ ? mode K
Parameters:
Mode(ClearMode): What portion of the line to clear.Selective(Boolean): When true, this is a DECSEL (selective erase) that only erases unprotected cells.
csharp
public ClearLineToken(ClearMode Mode = ClearMode.ToEnd, bool Selective = false)Properties
Mode
What portion of the line to clear.
Returns: ClearMode
csharp
public ClearMode Mode { get; init; }Selective
When true, this is a DECSEL (selective erase) that only erases unprotected cells.
Returns: Boolean
csharp
public bool Selective { get; init; }Remarks
Clears part or all of the current line without affecting other lines. Uses the same enum as , but is not applicable here.