TerminalShellIntegration

Shell integration-powered capabilities owned by a terminal.

Online Documentation

Properties

Link copied to clipboard
abstract external val cwd: Uri?

The current working directory of the terminal. This Uri may represent a file on another machine (eg. ssh into another machine). This requires the shell integration to support working directory reporting.

Functions

Link copied to clipboard
abstract external fun executeCommand(commandLine: String): TerminalShellExecution
abstract external fun executeCommand(executable: String, args: ReadonlyArray<JsString>): TerminalShellExecution

Execute a command, sending ^C as necessary to interrupt any running command if needed.