diff --git a/lib/term.js b/lib/term.js index 001419a5..0a4eb6e8 100644 --- a/lib/term.js +++ b/lib/term.js @@ -1029,6 +1029,7 @@ Terminal.prototype.refresh = function(start, end) { if (ch <= ' ') { out += ' '; } else { + // if (dwidthChars.test(ch)) i++; out += ch; } break; @@ -1131,13 +1132,14 @@ Terminal.prototype.scrollDisp = function(disp) { }; Terminal.prototype.write = function(data) { - // data = data.replace(dwidthChars, '?'); - var l = data.length , i = 0 , cs , ch; + // If we want to remove double-width chars entirely. + // data = data.replace(dwidthChars, '?'); + this.refreshStart = this.y; this.refreshEnd = this.y; @@ -1229,6 +1231,7 @@ Terminal.prototype.write = function(data) { this.lines[this.y + this.ybase][this.x] = [this.curAttr, ch]; this.x++; this.updateRange(this.y); + // if (dwidthChars.test(ch)) this.x++; } break; }