stop using screen.cols.

This commit is contained in:
Christopher Jeffrey 2015-04-16 14:38:36 -07:00
parent 46a76abbdd
commit 5dacfbad97
2 changed files with 5 additions and 4 deletions

View File

@ -1041,7 +1041,7 @@ Screen.prototype.draw = function(start, end) {
clr = true;
neq = false;
for (xx = x; xx < this.cols; xx++) {
for (xx = x; xx < line.length; xx++) {
if (line[xx][0] !== data || line[xx][1] !== ' ') {
clr = false;
break;
@ -1059,7 +1059,7 @@ Screen.prototype.draw = function(start, end) {
}
out += this.tput.cup(y, x);
out += this.tput.el();
for (xx = x; xx < this.cols; xx++) {
for (xx = x; xx < line.length; xx++) {
o[xx][0] = data;
o[xx][1] = ' ';
}
@ -1086,7 +1086,7 @@ Screen.prototype.draw = function(start, end) {
// }
// out += this.tput.cuf(xx - x);
// this.fillRegion(data, ' ',
// x, this.tput.strings.erase_chars ? xx : this.cols,
// x, this.tput.strings.erase_chars ? xx : line.length,
// y, y + 1);
// x = xx - 1;
// continue;
@ -1095,7 +1095,7 @@ Screen.prototype.draw = function(start, end) {
// Skip to the next line if the
// rest of the line is already drawn.
// if (!neq) {
// for (; xx < this.cols; xx++) {
// for (; xx < line.length; xx++) {
// if (line[xx][0] !== o[xx][0] || line[xx][1] !== o[xx][1]) {
// neq = true;
// break;

View File

@ -5,6 +5,7 @@ screen = blessed.screen({
dump: __dirname + '/logs/eaw.log',
smartCSR: true,
dockBorders: true,
useBCE: true,
fullUnicode: ~process.argv.indexOf('-') ? false : true
});