mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Pass through shutdown and resize
This commit is contained in:
@@ -212,10 +212,19 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
|
||||
console.log('$createProcess terminal: ' + terminal.name);
|
||||
}
|
||||
|
||||
public $acceptTerminalProcessWrite(id: number, data: string): void {
|
||||
public $acceptTerminalProcessInput(id: number, data: string): void {
|
||||
this._terminalProcesses[id].send({ event: 'input', data });
|
||||
}
|
||||
|
||||
public $acceptTerminalProcessResize(id: number, cols: number, rows: number): void {
|
||||
console.log('resize' + cols + ',' + rows);
|
||||
this._terminalProcesses[id].send({ event: 'resize', cols, rows });
|
||||
}
|
||||
|
||||
public $acceptTerminalProcessShutdown(id: number): void {
|
||||
this._terminalProcesses[id].send({ event: 'shutdown' });
|
||||
}
|
||||
|
||||
private _getTerminalById(id: number): ExtHostTerminal {
|
||||
let index = this._getTerminalIndexById(id);
|
||||
return index !== null ? this._terminals[index] : null;
|
||||
|
||||
Reference in New Issue
Block a user