update files

This commit is contained in:
nuintun 2015-11-30 16:42:58 +08:00
parent 20ff506a3c
commit 527312a61b
2 changed files with 11 additions and 4 deletions

View File

@ -61,6 +61,8 @@
var xterm = new AnsiTerminal(80, 60, 100);
xterm.debug = false;
[
'',
'\u001b[92m\'use strict\'\u001b[39m\u001b[90m;\u001b[39m',

View File

@ -750,11 +750,16 @@ TChar.prototype.toString = function (){
};
var _uniqueId = 0;
var Row = function (){
/**
* Row
* @constructor
*/
function Row(){
this.uniqueId = _uniqueId++ | 0;
this.version = 1;
this.cells = [];
};
}
/**
* ScreenBuffer - represents a terminal screen with cols and rows.
@ -766,7 +771,7 @@ var Row = function (){
* @param scrollLength
* @constructor
*/
var ScreenBuffer = function (cols, rows, scrollLength){
function ScreenBuffer(cols, rows, scrollLength){
this.rows = rows;
this.cols = cols;
this.scrollLength = scrollLength | 0;
@ -776,7 +781,7 @@ var ScreenBuffer = function (cols, rows, scrollLength){
this.versions = {};
this.reset();
};
}
ScreenBuffer.prototype.reset = function (){
this.buffer = [];