mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Improve debug logging by printing character codes
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
||||
const cursorStartX = buffer.x;
|
||||
const cursorStartY = buffer.y;
|
||||
|
||||
this._logService.debug('parsing data', data);
|
||||
this._logService.debug(`parsing data "${data}"`, data.split('').map(e => e.charCodeAt(0)));
|
||||
|
||||
if (this._parseBuffer.length < data.length) {
|
||||
this._parseBuffer = new Uint32Array(data.length);
|
||||
|
||||
@@ -54,7 +54,7 @@ export class CoreService implements ICoreService {
|
||||
}
|
||||
|
||||
// Fire onData API
|
||||
this._logService.debug('sending data', data);
|
||||
this._logService.debug(`sending data "${data}"`, data.split('').map(e => e.charCodeAt(0)));
|
||||
this._onData.fire(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user