mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 12:14:03 +08:00
update files
This commit is contained in:
parent
20ff506a3c
commit
527312a61b
@ -61,6 +61,8 @@
|
|||||||
|
|
||||||
var xterm = new AnsiTerminal(80, 60, 100);
|
var xterm = new AnsiTerminal(80, 60, 100);
|
||||||
|
|
||||||
|
xterm.debug = false;
|
||||||
|
|
||||||
[
|
[
|
||||||
'',
|
'',
|
||||||
'\u001b[92m\'use strict\'\u001b[39m\u001b[90m;\u001b[39m',
|
'\u001b[92m\'use strict\'\u001b[39m\u001b[90m;\u001b[39m',
|
||||||
|
@ -750,11 +750,16 @@ TChar.prototype.toString = function (){
|
|||||||
};
|
};
|
||||||
|
|
||||||
var _uniqueId = 0;
|
var _uniqueId = 0;
|
||||||
var Row = function (){
|
|
||||||
|
/**
|
||||||
|
* Row
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
function Row(){
|
||||||
this.uniqueId = _uniqueId++ | 0;
|
this.uniqueId = _uniqueId++ | 0;
|
||||||
this.version = 1;
|
this.version = 1;
|
||||||
this.cells = [];
|
this.cells = [];
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ScreenBuffer - represents a terminal screen with cols and rows.
|
* ScreenBuffer - represents a terminal screen with cols and rows.
|
||||||
@ -766,7 +771,7 @@ var Row = function (){
|
|||||||
* @param scrollLength
|
* @param scrollLength
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
var ScreenBuffer = function (cols, rows, scrollLength){
|
function ScreenBuffer(cols, rows, scrollLength){
|
||||||
this.rows = rows;
|
this.rows = rows;
|
||||||
this.cols = cols;
|
this.cols = cols;
|
||||||
this.scrollLength = scrollLength | 0;
|
this.scrollLength = scrollLength | 0;
|
||||||
@ -776,7 +781,7 @@ var ScreenBuffer = function (cols, rows, scrollLength){
|
|||||||
this.versions = {};
|
this.versions = {};
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
};
|
}
|
||||||
|
|
||||||
ScreenBuffer.prototype.reset = function (){
|
ScreenBuffer.prototype.reset = function (){
|
||||||
this.buffer = [];
|
this.buffer = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user