update files

This commit is contained in:
nuintun 2015-11-25 11:34:31 +08:00
parent 1039c0109f
commit e9e39f1eb4
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ function Terminal(options){
this.bgColor = options.bgColor || Terminal.defaultColors.bgColor;
this.fgColor = options.bgColor || Terminal.defaultColors.fgColor;
this.resetOptions = options;
this.options = options;
this.ybase = 0;
this.ydisp = 0;

View File

@ -7,10 +7,10 @@
module.exports = function (Terminal){
// ESC c Full Reset (RIS).
Terminal.prototype.reset = function (){
this.resetOptions.rows = this.rows;
this.resetOptions.cols = this.cols;
this.options.rows = this.rows;
this.options.cols = this.cols;
Terminal.call(this, this.resetOptions);
Terminal.call(this, this.options);
this.refresh(0, this.rows - 1);
};
};