@xterm/xterm 5.6.0-beta.134 → 5.6.0-beta.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +2 -2
- package/package.json +2 -2
- package/src/common/InputHandler.ts +6 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "5.6.0-beta.
|
|
4
|
+
"version": "5.6.0-beta.136",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"ws": "^8.2.3",
|
|
109
109
|
"xterm-benchmark": "^0.3.1"
|
|
110
110
|
},
|
|
111
|
-
"commit": "
|
|
111
|
+
"commit": "6c79a46513b857682538f594fd0e14f59b53d223"
|
|
112
112
|
}
|
|
@@ -445,7 +445,10 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
445
445
|
|
|
446
446
|
// Log debug data, the log level gate is to prevent extra work in this hot path
|
|
447
447
|
if (this._logService.logLevel <= LogLevelEnum.DEBUG) {
|
|
448
|
-
this._logService.debug(`parsing data${typeof data === 'string' ? ` "${data}"` : ` "${Array.prototype.map.call(data, e => String.fromCharCode(e)).join('')}"`}
|
|
448
|
+
this._logService.debug(`parsing data ${typeof data === 'string' ? ` "${data}"` : ` "${Array.prototype.map.call(data, e => String.fromCharCode(e)).join('')}"`}`);
|
|
449
|
+
}
|
|
450
|
+
if (this._logService.logLevel === LogLevelEnum.TRACE) {
|
|
451
|
+
this._logService.trace(`parsing data (codes)`, typeof data === 'string'
|
|
449
452
|
? data.split('').map(e => e.charCodeAt(0))
|
|
450
453
|
: data
|
|
451
454
|
);
|
|
@@ -606,7 +609,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
606
609
|
// since an empty cell is only set by fullwidth chars
|
|
607
610
|
bufferRow.addCodepointToCell(this._activeBuffer.x - offset,
|
|
608
611
|
code, chWidth);
|
|
609
|
-
for (let delta = chWidth - oldWidth; --delta >= 0;
|
|
612
|
+
for (let delta = chWidth - oldWidth; --delta >= 0;) {
|
|
610
613
|
bufferRow.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, curAttr);
|
|
611
614
|
}
|
|
612
615
|
continue;
|
|
@@ -1622,7 +1625,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
1622
1625
|
const text = bufferRow.getString(x);
|
|
1623
1626
|
const data = new Uint32Array(text.length * length);
|
|
1624
1627
|
let idata = 0;
|
|
1625
|
-
for (let itext = 0; itext < text.length;
|
|
1628
|
+
for (let itext = 0; itext < text.length;) {
|
|
1626
1629
|
const ch = text.codePointAt(itext) || 0;
|
|
1627
1630
|
data[idata++] = ch;
|
|
1628
1631
|
itext += ch > 0xffff ? 2 : 1;
|