This commit is contained in:
Christopher Jeffrey
2013-08-08 09:27:30 -05:00
parent 6cc8b3cd8a
commit 14248234d4
5 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* term.js - an xterm emulator
* Copyright (c) 2013, Christopher Jeffrey (MIT License)
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js
*/
+12
View File
@@ -1104,6 +1104,8 @@ Terminal.prototype.scrollDisp = function(disp) {
};
Terminal.prototype.write = function(data) {
// data = data.replace(dwidthChars, '?');
var l = data.length
, i = 0
, cs
@@ -4336,6 +4338,16 @@ function indexOf(obj, el) {
return -1;
}
var dwidthChars = new RegExp('(['
+ '\\uff01-\\uffbe'
+ '\\uffc2-\\uffc7'
+ '\\uffca-\\uffcf'
+ '\\uffd2-\\uffd7'
+ '\\uffda-\\uffdc'
+ '\\uffe0-\\uffe6'
+ '\\uffe8-\\uffee'
+ '])', 'g');
/**
* Expose
*/