Creates a terminal string.
The starting column for this string (negative values are replaced by zero)
The initial number of line feeds (non-positive values are ignored)
True if the string should be right-aligned to the terminal width
Private
Readonly
contextThe terminal string context.
The starting column for this string (negative values are replaced by zero)
The number of internal strings
The lengths of internal strings
The list of internal strings
Appends an SGR clear sequence to the list. This is different from the pop method (we are aware of this ambiguity, but we want method names to be short).
The terminal string instance
Formats a set of arguments.
The format styles
The custom phrase
Optional
args: FormatArgsThe format arguments
Optional
flags: FormattingFlagsThe formatting flags
The terminal string instance
Appends another terminal string to the list. We deliberately avoided optimizing this code, in order to keep it short.
The other terminal string
The terminal string instance
Appends a sequence to the list.
The sequence to insert
The terminal string instance
Splits a text into words and style sequences, and appends them to the list.
The text to be split
Optional
format: FormatCallback<string>An optional callback to process format specifiers
The terminal string instance
Wraps the internal strings to fit in a terminal width.
The resulting strings to append to
The current terminal column
The desired terminal width (or zero to avoid wrapping)
True if styles should be emitted
The updated terminal column
Implements concatenation of strings that can be printed on a terminal.