From 8f0025c650e6a3dad143b19259abd693b499e8b3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 7 Jun 2013 06:17:15 -0500 Subject: [PATCH] comments. --- lib/widget.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();