update files

This commit is contained in:
nuintun 2015-11-25 11:59:30 +08:00
parent abaea8ed18
commit 24e964f437
3 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -127,11 +127,11 @@ module.exports = function (Terminal){
out += '<';
break;
case '>':
out += '>';
out += '>';
break;
default:
if (ch <= ' ') {
out += '&gt;';
out += '&nbsp;';
} else {
if (this.isWide(ch)) i++;

View File

@ -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