Readonly
creationThe object used to initialize the terminal, this is useful for example to detecting the shell type of when the terminal was not launched by this extension or for detecting what folder the shell was launched in.
The exit status of the terminal, this will be undefined while the terminal is active.
Example: Show a notification with the exit code when the terminal exits with a non-zero exit code.
window.onDidCloseTerminal(t => {
if (t.exitStatus && t.exitStatus.code) {
vscode.window.showInformationMessage(`Exit code: ${t.exitStatus.code}`);
}
});
Readonly
idHuman readable representation of the terminal in the UI.
The current state of the Terminal.
Destroy terminal.
Hide terminal panel.
Send text to the terminal.
The text to send.
Indicates that the text being sent should be executed rather than just inserted in the terminal.
The character added is \r, independent from the platform (compared to platform specific in vscode). This defaults to true
.
Show created terminal on the UI.
Optional
preserveFocus: booleanin case true - set up focus on the terminal widget, otherwise show terminal without focus.
Definition of the terminal emulator.