v0.0.1
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user