corresponding ANSI code sequence for this style
True if this style is a full reset of all properties.
StaticRESETa Style object that resets all properties
Return just the CSS for the styles. Href is not relevant.
Return 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.
Wrap the input string in the appropriate HTML for this style
StaticansiStaticpropertiesStaticvalidIf the input string is a sequence of only ANSI style and OSC href codes, returns the array of codes and their parameters. Otherwise, returns false.
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.