Class AnsiMessage

An ANSI message. Used as base for other message classes.

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

  • Parameters

    • arrayLength: number

    Returns AnsiMessage

  • Parameters

    Returns AnsiMessage

Accessors

Methods

  • Wraps the help message to a specified width.

    Parameters

    • width: number = 0

      The terminal width (or zero to avoid wrapping)

    • emitStyles: boolean = !omitStyles(width)

      True if styles should be emitted

    Returns string

    The message to be printed on a terminal