Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TerminalServiceMain

Hierarchy

  • TerminalServiceMain

Implemented by

Index

Methods

$createTerminal

  • $createTerminal(id: string, options: TerminalOptions, isPseudoTerminal?: boolean): Promise<string>
  • Create new Terminal with Terminal options.

    Parameters

    • id: string
    • options: TerminalOptions

      object with parameters to create new terminal.

    • Optional isPseudoTerminal: boolean

    Returns Promise<string>

$dispose

  • $dispose(id: string): void

$disposeByTerminalId

  • $disposeByTerminalId(id: number, waitOnExit?: string | boolean): void

$hide

  • $hide(id: string): void

$hideByTerminalId

  • $hideByTerminalId(id: number): void

$resize

  • $resize(id: string, cols: number, rows: number): void

$resizeByTerminalId

  • $resizeByTerminalId(id: number, cols: number, rows: number): void

$sendText

  • $sendText(id: string, text: string, addNewLine?: boolean): void
  • Send text to the terminal by id.

    Parameters

    • id: string

      terminal widget id.

    • text: string

      text content.

    • Optional addNewLine: boolean

      in case true - add new line after the text, otherwise - don't apply new line.

    Returns void

$sendTextByTerminalId

  • $sendTextByTerminalId(id: number, text: string, addNewLine?: boolean): void
  • Send text to the terminal by id.

    Parameters

    • id: number

      terminal id.

    • text: string

      text content.

    • Optional addNewLine: boolean

      in case true - add new line after the text, otherwise - don't apply new line.

    Returns void

$setEnvironmentVariableCollection

  • $setEnvironmentVariableCollection(extensionIdentifier: string, persistent: boolean, collection: undefined | SerializableEnvironmentVariableCollection): void

$show

  • $show(id: string, preserveFocus?: boolean): void

$showByTerminalId

  • $showByTerminalId(id: number, preserveFocus?: boolean): void

$write

  • $write(id: string, data: string): void

$writeByTerminalId

  • $writeByTerminalId(id: number, data: string): void