Remove open event

Fixes #901
This commit is contained in:
Daniel Imms
2017-08-19 14:33:41 -07:00
parent f520e27f40
commit e848d6afbe
3 changed files with 2 additions and 11 deletions
-2
View File
@@ -63,7 +63,6 @@ namespace methods_core {
t.on('blur', () => {});
t.on('focus', () => {});
t.on('lineFeed', () => {});
t.on('open', () => {});
// args
t.on('data', () => {});
t.on('data', (data: string) => console.log(data));
@@ -89,7 +88,6 @@ namespace methods_core {
t.off('blur', () => {});
t.off('focus', () => {});
t.off('lineFeed', () => {});
t.off('open', () => {});
// args
t.off('data', () => {});
t.off('data', (data: string) => console.log(data));
-7
View File
@@ -765,13 +765,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// Listen for mouse events and translate
// them into terminal mouse protocols.
this.bindMouse();
/**
* This event is emitted when terminal has completed opening.
*
* @event open
*/
this.emit('open');
}
/**
+2 -2
View File
@@ -112,7 +112,7 @@ declare module 'xterm' {
* @param type The type of the event.
* @param listener The listener.
*/
on(type: 'blur' | 'focus' | 'lineFeed' | 'open', listener: () => void): void;
on(type: 'blur' | 'focus' | 'lineFeed', listener: () => void): void;
/**
* Registers an event listener.
* @param type The type of the event.
@@ -161,7 +161,7 @@ declare module 'xterm' {
* @param type The type of the event.
* @param listener The listener.
*/
off(type: 'blur' | 'focus' | 'lineFeed' | 'open' | 'data' | 'key' | 'keypress' | 'keydown' | 'refresh' | 'resize' | 'scroll' | 'title', listener: (...args: any[]) => void): void;
off(type: 'blur' | 'focus' | 'lineFeed' | 'data' | 'key' | 'keypress' | 'keydown' | 'refresh' | 'resize' | 'scroll' | 'title', listener: (...args: any[]) => void): void;
/**
* Resizes the terminal.