@@ -63,7 +63,6 @@ namespace methods_core {
|
|||||||
t.on('blur', () => {});
|
t.on('blur', () => {});
|
||||||
t.on('focus', () => {});
|
t.on('focus', () => {});
|
||||||
t.on('lineFeed', () => {});
|
t.on('lineFeed', () => {});
|
||||||
t.on('open', () => {});
|
|
||||||
// args
|
// args
|
||||||
t.on('data', () => {});
|
t.on('data', () => {});
|
||||||
t.on('data', (data: string) => console.log(data));
|
t.on('data', (data: string) => console.log(data));
|
||||||
@@ -89,7 +88,6 @@ namespace methods_core {
|
|||||||
t.off('blur', () => {});
|
t.off('blur', () => {});
|
||||||
t.off('focus', () => {});
|
t.off('focus', () => {});
|
||||||
t.off('lineFeed', () => {});
|
t.off('lineFeed', () => {});
|
||||||
t.off('open', () => {});
|
|
||||||
// args
|
// args
|
||||||
t.off('data', () => {});
|
t.off('data', () => {});
|
||||||
t.off('data', (data: string) => console.log(data));
|
t.off('data', (data: string) => console.log(data));
|
||||||
|
|||||||
@@ -765,13 +765,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
// Listen for mouse events and translate
|
// Listen for mouse events and translate
|
||||||
// them into terminal mouse protocols.
|
// them into terminal mouse protocols.
|
||||||
this.bindMouse();
|
this.bindMouse();
|
||||||
|
|
||||||
/**
|
|
||||||
* This event is emitted when terminal has completed opening.
|
|
||||||
*
|
|
||||||
* @event open
|
|
||||||
*/
|
|
||||||
this.emit('open');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Vendored
+2
-2
@@ -112,7 +112,7 @@ declare module 'xterm' {
|
|||||||
* @param type The type of the event.
|
* @param type The type of the event.
|
||||||
* @param listener The listener.
|
* @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.
|
* Registers an event listener.
|
||||||
* @param type The type of the event.
|
* @param type The type of the event.
|
||||||
@@ -161,7 +161,7 @@ declare module 'xterm' {
|
|||||||
* @param type The type of the event.
|
* @param type The type of the event.
|
||||||
* @param listener The listener.
|
* @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.
|
* Resizes the terminal.
|
||||||
|
|||||||
Reference in New Issue
Block a user