Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TerminalServiceMain

Hierarchy

  • TerminalServiceMain

Implemented by

Index

Methods

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

    Parameters

    • id: string
    • options: TerminalOptions

      object with parameters to create new terminal.

    • Optional parentId: string
    • Optional isPseudoTerminal: boolean

    Returns Promise<string>

  • $dispose(id: string): void
  • $disposeByTerminalId(id: number, waitOnExit?: string | boolean): void
  • $hide(id: string): void
  • $hideByTerminalId(id: number): void
  • $registerTerminalLinkProvider(providerId: string): Promise<void>
  • $resize(id: string, cols: number, rows: number): void
  • $resizeByTerminalId(id: number, cols: number, rows: number): void
  • $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(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(extensionIdentifier: string, persistent: boolean, collection: undefined | SerializableEnvironmentVariableCollection): void
  • $setName(id: string, name: string): void
  • $setNameByTerminalId(id: number, name: string): void
  • $show(id: string, preserveFocus?: boolean): void
  • $showByTerminalId(id: number, preserveFocus?: boolean): void
  • $unregisterTerminalLinkProvider(providerId: string): Promise<void>
  • $write(id: string, data: string): void
  • $writeByTerminalId(id: number, data: string): void