Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IWriter

Implemented by

Index

Methods

bg

clear

  • clear(): void
  • Clears the internal buffer but keeps the current colors.

    Returns void

fg

print

  • print(): void
  • Prints the formatted content of this writer in the console.

    Returns void

push

  • push(str: string): void
  • Writes a string to the internal buffer.

    sealed

    Parameters

    • str: string

      String to write.

    Returns void

resetColor

  • resetColor(fg?: boolean, bg?: boolean): void
  • Resets the current color to the default.

    Parameters

    • Optional fg: boolean

      Foreground color.

    • Optional bg: boolean

      Background color.

    Returns void

toString

  • toString(): string
  • Returns string

    The text content of this writer.

Generated using TypeDoc