mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-06 10:54:07 +08:00
update files
This commit is contained in:
parent
20ff506a3c
commit
527312a61b
@ -61,6 +61,8 @@
|
||||
|
||||
var xterm = new AnsiTerminal(80, 60, 100);
|
||||
|
||||
xterm.debug = false;
|
||||
|
||||
[
|
||||
'',
|
||||
'\u001b[92m\'use strict\'\u001b[39m\u001b[90m;\u001b[39m',
|
||||
|
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user