comments.
This commit is contained in:
parent
3eee2599b7
commit
8f0025c650
|
@ -260,6 +260,7 @@ Screen.prototype.draw = function(start, end) {
|
|||
}
|
||||
continue;
|
||||
} else if (lx !== -1) {
|
||||
//out += y === ly ? this.tput.cuf(x - lx) : this.tput.cup(y, x);
|
||||
out += y === ly
|
||||
? '\x1b[' + (x - lx) + 'C'
|
||||
: '\x1b[' + (y + 1) + ';' + (x + 1) + 'H';
|
||||
|
@ -346,10 +347,8 @@ Screen.prototype.draw = function(start, end) {
|
|||
out += '\x1b[m';
|
||||
}
|
||||
|
||||
//this.program.move(y + 1, 1);
|
||||
//this.program.write(out);
|
||||
//if (out) this.program.write(this.tput.cup(y, 1) + out);
|
||||
if (out) this.program.write('\x1b[' + (y + 1) + ';1H' + out);
|
||||
//if (out) this.program.write(lx !== -1 ? out : '\x1b[' + (y + 1) + ';1H' + out);
|
||||
}
|
||||
|
||||
this.program.restoreCursor();
|
||||
|
|
Loading…
Reference in New Issue