comments.

This commit is contained in:
Christopher Jeffrey 2013-06-07 06:17:15 -05:00
parent 3eee2599b7
commit 8f0025c650
1 changed files with 2 additions and 3 deletions

View File

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