Optional
onAn event that when fired allows changing the name of the terminal.
Events fired before Pseudoterminal.open is called will be be ignored.
Example: Change the terminal name to "My new terminal".
const writeEmitter = new vscode.EventEmitter<string>();
const changeNameEmitter = new vscode.EventEmitter<string>();
const pty: vscode.Pseudoterminal = {
onDidWrite: writeEmitter.event,
onDidChangeName: changeNameEmitter.event,
open: () => changeNameEmitter.fire('My new terminal'),
close: () => {}
};
vscode.window.createTerminal({ name: 'My terminal', pty });
Optional
onAn event that when fired will close the pty.
Optional
onAn event that when fired allows resizing the terminal.
An event that when fired will write data to the terminal.
Optional
handleImplement to handle when the pty is opened.
The dimensions of the terminal.
Optional
setImplement to handle when the number of rows and columns changes.
The new dimensions.
Defines the interface of a terminal pty, enabling extensions to control a terminal.