@nightgrey/ansi
    Preparing search index...

    Class Attributes

    SGR Attributes

    Implements

    Index

    Constructors

    Properties

    bg: number
    fg: number
    high: number
    low: number
    ul: number

    Accessors

    Methods

    • Check if a bit is set at the specified position

      Parameters

      • bit: number

        The bit position (0-63)

      Returns boolean

      true if the bit is set, false otherwise

    • An iterator of all keys (bit positions) in the bitfield

      Returns Generator<Bit, void, unknown>

    • Set a bit at the specified position

      Parameters

      • bit: number

        The bit position (0-63)

      • Optionalbg: number

        background color

      • Optionalfg: number

        foreground color

      • Optionalul: number

        underline color

      • Optionalus: UnderlineStyle

        underline style

      Returns Attributes

      A new Attributes instance with the bit set

    • Toggle a bit at the specified position

      Parameters

      • bit: number

        The bit position (0-63)

      Returns Attributes

      A new Attributes instance with the bit toggled

    • Parameters

      • Optionalradix: number

      Returns string

    • Unset a bit at the specified position

      Parameters

      • bit: number

        The bit position (0-63)

      • Optionalbg: number

        background color

      • Optionalfg: number

        foreground color

      • Optionalul: number

        underline color

      • Optionalus: UnderlineStyle

        underline style

      Returns Attributes

      A new Attributes instance with the bit unset

    • Parameters

      • r: number
      • g: number
      • b: number

      Returns number