@nightgrey/ansi
    Preparing search index...

    Class Style

    An interface for style-able objects.

    Style

    Implements

    Index

    Constructors

    Properties

    attributes: Attributes

    Bitfield for style attributes

    background: (color: MaybeColor) => Style = ...

    Type declaration

    foreground: (color: MaybeColor) => Style = ...

    Type declaration

    background: (color: MaybeColor) => Style = ...
    empty: Style = ...

    Empty Style

    foreground: (color: MaybeColor) => Style = ...

    Accessors

    Methods

    • Formats a string with this style applied.

      Parameters

      • string: string

      Returns string

    • Returns the ANSI SGR (Select Graphic Rendition) string representation of the style.

      Returns string