src/vs/workbench/api/common/extHostTerminalService.ts/ExtHostPseudoterminal/startSendingEvents
class ExtHostPseudoterminal:	startSendingEvents(initialDimensions: ITerminalDimensionsDto | undefined): void {
		// Attach the listeners
		this._pty.onDidWrite(e => this._onProcessData.fire(e));
		if (this._pty.onDidClose) {
			this._pty.onDidClose((e: number | void = undefined) => {
				this._onProcessExit.fire(e === void 0 ? undefined : e);
			});
		}
		if (this._pty.onDidOverrideDimensions) {
			this._pty.onDidOverrideDimensions(e => this._onProcessOverrideDimensions.fire(e ? { cols: e.columns, rows: e.rows } : e));
		}
		if (this._pty.onDidChangeName) {
			this._pty.onDidChangeName(title => this._onProcessTitleChanged.fire(title));
		}

		this._pty.open(initialDimensions ? initialDimensions : undefined);

		if (this._pty.setDimensions && initialDimensions) {
			this._pty.setDimensions(initialDimensions);
		}

		this._onProcessReady.fire({ pid: -1, cwd: '' });
	}