@laserware/arcade
    Preparing search index...

    Function createTerminalStyles

    • Creates a terminal styles formatter object dynamically and returns an object with formatter functions for applying formatting to an input. This is provided in the event that you need to explicitly enable or disable terminal colors programmatically.

      Parameters

      • enabled: boolean = ...

        If true, use styles, otherwise ignore.

      Returns TerminalStyles

      Object with key of terminal style and value of the corresponding formatter callback to apply style to an input.