TextToken
Namespace: Hex1b.Tokens
Assembly: Hex1b.dll
Represents plain text content to be written at the current cursor position.
csharp
public sealed record TextToken : AnsiToken, IEquatable<AnsiToken>, IEquatable<TextToken>Inheritance
Object → AnsiToken → TextToken
Implements
Constructors
TextToken(string)
Represents plain text content to be written at the current cursor position.
Parameters:
Text(String): The text content, which may include grapheme clusters (emoji, combining characters, etc.). This is never empty - empty text should not generate a token.
csharp
public TextToken(string Text)Properties
Text
The text content, which may include grapheme clusters (emoji, combining characters, etc.). This is never empty - empty text should not generate a token.
Returns: String
csharp
public string Text { get; init; }Remarks
When serialized, this emits the raw text. The terminal will write it at the current cursor position using the current SGR attributes.