Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PseudoPty

Implements

  • IPty

Index

Constructors

Properties

cols: number = -1
handleFlowControl: boolean = false
onData: Event<string> = Event.None
onExit: Event<{ exitCode: number; signal?: number }> = Event.None
pid: number = -1
process: string = ''
rows: number = -1

Methods

  • kill(signal?: string): void
  • on(event: string, listener: ((data: string) => void)): void
  • on(event: string, listener: ((exitCode: number, signal?: number) => void)): void
  • on(event: string, listener: ((error?: string) => void)): void
  • Parameters

    • event: string
    • listener: ((data: string) => void)
        • (data: string): void
        • Parameters

          • data: string

          Returns void

    Returns void

  • Parameters

    • event: string
    • listener: ((exitCode: number, signal?: number) => void)
        • (exitCode: number, signal?: number): void
        • Parameters

          • exitCode: number
          • Optional signal: number

          Returns void

    Returns void

  • Parameters

    • event: string
    • listener: ((error?: string) => void)
        • (error?: string): void
        • Parameters

          • Optional error: string

          Returns void

    Returns void

  • pause(): void
  • resize(columns: number, rows: number): void
  • resume(): void
  • write(data: string): void