Add IBuffer, IBufferSet and fix CircularList type

This commit is contained in:
Daniel Imms
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent cb5a452c90
commit 59f75555bc
6 changed files with 41 additions and 17 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import { CircularList } from './utils/CircularList';
* - scroll position
*/
export class Buffer {
public lines: CircularList<[string, number, string]>;
public lines: CircularList<[number, string, number][]>;
/**
* Create a new Buffer.
@@ -33,7 +33,7 @@ export class Buffer {
public scrollTop: number = 0,
public tabs: any = {},
) {
this.lines = new CircularList<[string, number, string]>(this.terminal.scrollback);
this.lines = new CircularList<[number, string, number][]>(this.terminal.scrollback);
this.scrollBottom = this.terminal.rows - 1;
}
}