Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

AsyncCompleter

AsyncCompleter: function

Type declaration

    • (line: string, callback: function): any

Completer

Completer: function

Type declaration

CompleterResult

CompleterResult: [string[], string]

Direction

Direction: -1 | 0 | 1

ReadLine

ReadLine: Interface

Functions

clearLine

  • Clears the current line of this WriteStream in a direction identified by dir.

    Parameters

    Returns boolean

clearScreenDown

  • clearScreenDown(stream: WritableStream, callback?: function): boolean
  • Clears this WriteStream from the current cursor down.

    Parameters

    • stream: WritableStream
    • Optional callback: function
        • (): void
        • Returns void

    Returns boolean

createInterface

cursorTo

  • cursorTo(stream: WritableStream, x: number, y?: number, callback?: function): boolean
  • Moves this WriteStream's cursor to the specified position.

    Parameters

    • stream: WritableStream
    • x: number
    • Optional y: number
    • Optional callback: function
        • (): void
        • Returns void

    Returns boolean

emitKeypressEvents

  • Parameters

    Returns void

moveCursor

  • moveCursor(stream: WritableStream, dx: number, dy: number, callback?: function): boolean
  • Moves this WriteStream's cursor relative to its current position.

    Parameters

    • stream: WritableStream
    • dx: number
    • dy: number
    • Optional callback: function
        • (): void
        • Returns void

    Returns boolean

Generated using TypeDoc