Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Program

Index

Methods

Methods

text

  • text(text: string, attr: string): string
  • Wrap the given text in terminal formatting codes corresponding to the given attribute name. The attr string can be of the form red fg or 52 bg where 52 is a 0-255 integer color number.

    Parameters

    • text: string
    • attr: string

    Returns string

Generated using TypeDoc