From 24e964f437ba9086c76df9e9c07b20a9b1d6aa49 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 25 Nov 2015 11:59:30 +0800 Subject: [PATCH] update files --- static/js/terminal/index.js | 2 +- static/js/terminal/lib/refresh.js | 4 ++-- static/js/terminal/lib/scrollDisp.js | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/static/js/terminal/index.js b/static/js/terminal/index.js index 3352efd..64700e0 100644 --- a/static/js/terminal/index.js +++ b/static/js/terminal/index.js @@ -51,7 +51,7 @@ function Terminal(options){ this.colors = options.colors; this.bgColor = options.bgColor || Terminal.defaultColors.bgColor; - this.fgColor = options.bgColor || Terminal.defaultColors.fgColor; + this.fgColor = options.fgColor || Terminal.defaultColors.fgColor; this.options = options; diff --git a/static/js/terminal/lib/refresh.js b/static/js/terminal/lib/refresh.js index 3e6e5fb..083408e 100644 --- a/static/js/terminal/lib/refresh.js +++ b/static/js/terminal/lib/refresh.js @@ -127,11 +127,11 @@ module.exports = function (Terminal){ out += '<'; break; case '>': - out += '>'; + out += '>'; break; default: if (ch <= ' ') { - out += '>'; + out += ' '; } else { if (this.isWide(ch)) i++; diff --git a/static/js/terminal/lib/scrollDisp.js b/static/js/terminal/lib/scrollDisp.js index 99a211a..ad644fc 100644 --- a/static/js/terminal/lib/scrollDisp.js +++ b/static/js/terminal/lib/scrollDisp.js @@ -13,8 +13,6 @@ module.exports = function (Terminal){ this.lines = this.lines.slice(-(this.ybase + this.rows) + 1); } - console.log(this.ybase, this.scrollback); - this.ydisp = this.ybase; // last line