Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tty

Provide interactions with the Shell TTY.

Hierarchy

Index

Methods

height

  • height(): number
  • Returns number

resizehandler

  • resizehandler(handler: ((res: void) => void) | Handler<void>): Tty
  • Set a resize handler, the handler is called when the tty size changes.

    Parameters

    • handler: ((res: void) => void) | Handler<void>

    Returns Tty

stdinHandler

  • stdinHandler(handler: ((res: string) => void) | Handler<string>): Tty
  • Set a stream handler on the standard input to read the data.

    Parameters

    • handler: ((res: string) => void) | Handler<string>

    Returns Tty

type

  • type(): string
  • Returns string

width

  • width(): number
  • Returns number

write

  • write(data: string): Tty
  • Write data to the standard output.

    Parameters

    • data: string

    Returns Tty

Generated using TypeDoc