mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
potential support for wide chars.
This commit is contained in:
+5
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user