Fix some tests and docs, little code fix up.

Fix some tests and docs. Add ability to run one test file with help gulp task.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
This commit is contained in:
Oleksandr Andriienko
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent d222eec9f7
commit de82bd00ae
8 changed files with 59 additions and 21 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import { CircularList } from './utils/CircularList';
* This class represents a terminal buffer (an internal state of the terminal)/
*/
export class Buffer {
public lines: CircularList<any>;
public lines: CircularList<string>;
/**
* Create a new Buffer.
@@ -29,7 +29,7 @@ export class Buffer {
public scrollTop: number = 0,
public tabs: any = {},
) {
this.lines = new CircularList(this.terminal.scrollback);
this.lines = new CircularList<string>(this.terminal.scrollback);
this.scrollBottom = this.terminal.rows - 1;
}
}