fix BCE handling.

This commit is contained in:
Christopher Jeffrey 2013-07-23 03:07:57 -05:00
parent 8f936d00b7
commit 8c4d70d1e1

View File

@ -883,10 +883,12 @@ Screen.prototype.draw = function(start, end) {
}
if (clr && neq) {
lx = ly = -1;
if (data !== attr) {
out += this.codeAttr(data);
attr = data;
}
out += this.tput.cup(y, x);
out += this.tput.el(0);
for (xx = x; xx < this.cols; xx++) {
o[xx][0] = data;
@ -899,10 +901,12 @@ Screen.prototype.draw = function(start, end) {
// and start over drawing the rest of line. Might
// not be worth it.
// if (!clr && neq && (xx - x) > 10) {
// lx = ly = -1;
// if (data !== attr) {
// out += this.codeAttr(data);
// attr = data;
// }
// out += this.tput.cup(y, x);
// out += this.tput.el(0) + this.tput.cuf(xx - x);
// clr = xx; // tmp
// for (xx = x; xx < this.cols; xx++) {