Convert data to EventEmitter2

This commit is contained in:
Daniel Imms
2019-04-09 19:53:02 -07:00
parent 2c96c262f4
commit 87328fe293
10 changed files with 38 additions and 31 deletions
+2 -2
View File
@@ -392,13 +392,13 @@ declare module 'xterm' {
onSelectionChange: IEvent<void>;
/**
* Adds an event listener for when an input event fires. This happens for
* Adds an event listener for when a data event fires. This happens for
* example when the user types or pastes into the terminal. The event value
* is whatever `string` results, in a typical setup, this should be passed
* on to the backing pty.
* @returns an `IDisposable` to stop listening.
*/
onInput: IEvent<string>;
onData: IEvent<string>;
/**
* Adds an event listener for when an OSC 0 or OSC 2 title change occurs.