Move BufferSet deps to common

This commit is contained in:
Daniel Imms
2019-06-08 17:58:56 -07:00
parent 658cd987d9
commit 62ff97c82d
4 changed files with 17 additions and 17 deletions
+12
View File
@@ -4,6 +4,7 @@
*/
import { IAttributeData, ICircularList, IBufferLine, ICellData } from 'common/Types';
import { IEvent } from 'common/EventEmitter2';
// BufferIndex denotes a position in the buffer: [rowIndex, colIndex]
export type BufferIndex = [number, number];
@@ -42,3 +43,14 @@ export interface IBuffer {
getNullCell(attr?: IAttributeData): ICellData;
getWhitespaceCell(attr?: IAttributeData): ICellData;
}
export interface IBufferSet {
alt: IBuffer;
normal: IBuffer;
active: IBuffer;
onBufferActivate: IEvent<{ activeBuffer: IBuffer, inactiveBuffer: IBuffer }>;
activateNormalBuffer(): void;
activateAltBuffer(fillAttr?: IAttributeData): void;
}