An 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 });
An event that when fired will close the pty.
An event that when fired allows resizing the terminal.
An event that when fired will write data to the terminal.
Implement to handle when the terminal is closed.
Implement to handle inputting data in the terminal.
The inputting data.
Implement to handle when the pty is opened.
The dimensions of the terminal.
Implement 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.