Options
All
  • Public
  • Public/Protected
  • All
Menu

Terminal for taking in Text input commands from user.

Notes:

  • If config.height is passed -1 no cropping will happen.

Hierarchy

  • OutputTerminal

Index

Constructors

constructor

Properties

Protected height

height: number

Height of OutputTerminal.

Protected lineController

lineController: DOMLineController

[[DOMLineControl]] for this OutputTerminal.

Protected linesToCheck

linesToCheck: number = 0

Record of the number of lines to check for overwrite.

Protected width

width: number

Width of OutputTerminal. -1 is unrestricted width.

Methods

getHeight

  • getHeight(): number

getWidth

  • getWidth(): number

newLine

  • newLine(): void

overwrite

  • overwrite(text: string): void

resetLinesToCheck

  • resetLinesToCheck(): void

write

  • write(text: string): void
  • Writes to current line on output terminal if space. If there is not enough space on the current line it will roll over to the next.

    Parameters

    • text: string

    Returns void

writeln

  • writeln(text: string): void

Generated using TypeDoc