From e9e39f1eb4c1bc163cf1eac10831d431af1e18a2 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 25 Nov 2015 11:34:31 +0800 Subject: [PATCH] update files --- static/js/terminal/index.js | 2 +- static/js/terminal/lib/esc/reset.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/terminal/index.js b/static/js/terminal/index.js index d038f0e..3352efd 100644 --- a/static/js/terminal/index.js +++ b/static/js/terminal/index.js @@ -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; diff --git a/static/js/terminal/lib/esc/reset.js b/static/js/terminal/lib/esc/reset.js index e151c43..a9a3b5b 100644 --- a/static/js/terminal/lib/esc/reset.js +++ b/static/js/terminal/lib/esc/reset.js @@ -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); }; };