potential support for wide chars.

This commit is contained in:
Christopher Jeffrey
2013-08-10 08:44:33 -05:00
parent a68c833692
commit d5b233b3f9
+5 -2
View File
@@ -1029,6 +1029,7 @@ Terminal.prototype.refresh = function(start, end) {
if (ch <= ' ') {
out += '&nbsp;';
} 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;
}