mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-28 02:12:43 +08:00
update files
This commit is contained in:
parent
1039c0109f
commit
e9e39f1eb4
@ -53,7 +53,7 @@ function Terminal(options){
|
|||||||
this.bgColor = options.bgColor || Terminal.defaultColors.bgColor;
|
this.bgColor = options.bgColor || Terminal.defaultColors.bgColor;
|
||||||
this.fgColor = options.bgColor || Terminal.defaultColors.fgColor;
|
this.fgColor = options.bgColor || Terminal.defaultColors.fgColor;
|
||||||
|
|
||||||
this.resetOptions = options;
|
this.options = options;
|
||||||
|
|
||||||
this.ybase = 0;
|
this.ybase = 0;
|
||||||
this.ydisp = 0;
|
this.ydisp = 0;
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
// ESC c Full Reset (RIS).
|
// ESC c Full Reset (RIS).
|
||||||
Terminal.prototype.reset = function (){
|
Terminal.prototype.reset = function (){
|
||||||
this.resetOptions.rows = this.rows;
|
this.options.rows = this.rows;
|
||||||
this.resetOptions.cols = this.cols;
|
this.options.cols = this.cols;
|
||||||
|
|
||||||
Terminal.call(this, this.resetOptions);
|
Terminal.call(this, this.options);
|
||||||
this.refresh(0, this.rows - 1);
|
this.refresh(0, this.rows - 1);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user