Replace EventEmitter usage in BufferSet

This commit is contained in:
Daniel Imms
2019-04-02 11:35:20 -07:00
parent f8fb4da9f4
commit 60c2b20d68
3 changed files with 14 additions and 9 deletions
+4 -1
View File
@@ -8,6 +8,7 @@ import { IColorSet, IRenderer } from './renderer/Types';
import { IMouseZoneManager } from './ui/Types';
import { ICharset } from './core/Types';
import { ICircularList } from './common/Types';
import { IEvent } from '../lib/common/EventEmitter2';
export type CustomKeyEventHandler = (event: KeyboardEvent) => boolean;
@@ -302,11 +303,13 @@ export interface IBuffer {
getWhitespaceCell(fg?: number, bg?: number): ICellData;
}
export interface IBufferSet extends IEventEmitter {
export interface IBufferSet {
alt: IBuffer;
normal: IBuffer;
active: IBuffer;
onBufferActivate: IEvent<{ activeBuffer: IBuffer, inactiveBuffer: IBuffer }>;
activateNormalBuffer(): void;
activateAltBuffer(fillAttr?: number): void;
}