mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 20:24:04 +08:00
update files
This commit is contained in:
parent
abaea8ed18
commit
24e964f437
@ -51,7 +51,7 @@ function Terminal(options){
|
|||||||
|
|
||||||
this.colors = options.colors;
|
this.colors = options.colors;
|
||||||
this.bgColor = options.bgColor || Terminal.defaultColors.bgColor;
|
this.bgColor = options.bgColor || Terminal.defaultColors.bgColor;
|
||||||
this.fgColor = options.bgColor || Terminal.defaultColors.fgColor;
|
this.fgColor = options.fgColor || Terminal.defaultColors.fgColor;
|
||||||
|
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
|
||||||
|
@ -127,11 +127,11 @@ module.exports = function (Terminal){
|
|||||||
out += '<';
|
out += '<';
|
||||||
break;
|
break;
|
||||||
case '>':
|
case '>':
|
||||||
out += '>';
|
out += '>';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (ch <= ' ') {
|
if (ch <= ' ') {
|
||||||
out += '>';
|
out += ' ';
|
||||||
} else {
|
} else {
|
||||||
if (this.isWide(ch)) i++;
|
if (this.isWide(ch)) i++;
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ module.exports = function (Terminal){
|
|||||||
this.lines = this.lines.slice(-(this.ybase + this.rows) + 1);
|
this.lines = this.lines.slice(-(this.ybase + this.rows) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.ybase, this.scrollback);
|
|
||||||
|
|
||||||
this.ydisp = this.ybase;
|
this.ydisp = this.ybase;
|
||||||
|
|
||||||
// last line
|
// last line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user