Change:
re see
same for
Same is true for Wanted to reuse the issue but didn't read all comments. Ignore mine. already mentioned it.
I'll change them to ,

Discussion:
test('TerminalRenderer.write should fire Terminal.onData', (done) => { const reg1 = window.onDidOpenTerminal(terminal => { reg1.dispose(); <del> const reg2 = terminal.onData(data => { </del> <ins> const reg2 = terminal.onDidWriteData(data => { </ins> assert.equal(data, 'bar'); reg2.dispose(); const reg3 = window.onDidCloseTerminal(() => {

test('Terminal.sendText should fire Termnial.onInput', (done) => { const reg1 = window.onDidOpenTerminal(terminal => { reg1.dispose(); <del> const reg2 = renderer.onInput(data => { </del> <ins> const reg2 = renderer.onDidAcceptInput(data => { </ins> assert.equal(data, 'bar'); reg2.dispose(); const reg3 = window.onDidCloseTerminal(() => {

* provides access to the raw data stream from the process running within the terminal, * including VT sequences. */ <del> onData: Event<string>; </del> <ins> onDidWriteData: Event<string>; </ins> } /**

* created with all its APIs available for use by extensions. When using the Terminal object * of a TerminalRenderer it acts just like normal only the extension that created the * TerminalRenderer essentially acts as a process. For example when an <del> * [Terminal.onData](#Terminal.onData) listener is registered, that will fire when * [TerminalRenderer.write](#TerminalRenderer.write) is called. Similarly when </del> <ins> * [Terminal.onDidWriteData](#Terminal.onDidWriteData) listener is registered, that will fire * when [TerminalRenderer.write](#TerminalRenderer.write) is called. Similarly when </ins> * [Terminal.sendText](#Terminal.sendText) is triggered that will fire the <del> * [TerminalRenderer.onInput](#TerminalRenderer.onInput) event. </del> <ins> * [TerminalRenderer.onDidAcceptInput](#TerminalRenderer.onDidAcceptInput) event. </ins> * * **Example:** Create a terminal renderer, show it and write hello world in red * ```typescript

* workbench command such as `workbench.action.terminal.runSelectedText` * ```typescript * const terminalRenderer = window.createTerminalRenderer('test'); <del> * terminalRenderer.onInput(data => { </del> <ins> * terminalRenderer.onDidAcceptInput(data => { </ins> *   cosole.log(data); // 'Hello world' * }); * terminalRenderer.terminal.then(t => t.sendText('Hello world')); * ``` */ <del> onInput: Event<string>; </del> <ins> onDidAcceptInput: Event<string>; </ins> /** * An event which fires when the [maximum dimensions](#TerminalRenderer.maimumDimensions) of

private _pidPromiseComplete: (value: number) => any; private readonly _onData: Emitter<string> = new Emitter<string>(); <del> public get onData(): Event<string> { </del> <ins> public get onDidWriteData(): Event<string> { </ins> // Tell the main side to start sending data if it's not already this._proxy.$registerOnDataListener(this._id); return this._onData && this._onData.event;

} private readonly _onInput: Emitter<string> = new Emitter<string>(); <del> public get onInput(): Event<string> { </del> <ins> public get onDidAcceptInput(): Event<string> { </ins> this._checkDisposed(); this._queueApiRequest(this._proxy.$terminalRendererRegisterOnInputListener, [this._id]); // Tell the main side to start sending data if it's not already