corresponding ANSI code sequence for this style
True if this style is a full reset of all properties.
Static
RESETReturn a new Style with this one plus the updated properties.
If a string is provided, must be a valid set of style and OSC hyperlink ANSI code, though unrecognized parameters within that code will be ignored rather than throwing an error.
Static
ansiConvert an ANSI style code to a set of properties
Static
propertiesConvert a set of properties to an ANSI style code
Static
valid
An immutable representation of an ANSI style. Used by Terminal and Block to represent the styles in use for text to be printed. If a Style object is created with the same properties as a formerly seen Style object, the same object will be returned.
For example:
This optimization cuts down considerably on object creation, because a Style is created for each styled character written to the Terminal buffer. It also means that Style objects can be compared directly with
===
to test for equivalence.