diff --git a/lib/widget.js b/lib/widget.js index 534a7f8..ae247aa 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -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();