Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fce067

Browse files
authored
Merge pull request#5425 from xtermjs/anthonykim1/parsingDataCharCode
Only show char codes for parsing data on trace
2 parentse9e8206 +59241e4 commit9fce067

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/common/InputHandler.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ export class InputHandler extends Disposable implements IInputHandler {
445445

446446
// Log debug data, the log level gate is to prevent extra work in this hot path
447447
if(this._logService.logLevel<=LogLevelEnum.DEBUG){
448-
this._logService.debug(`parsing data${typeofdata==='string' ?` "${data}"` :` "${Array.prototype.map.call(data,e=>String.fromCharCode(e)).join('')}"`}`,typeofdata==='string'
448+
this._logService.debug(`parsing data${typeofdata==='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)`,typeofdata==='string'
449452
?data.split('').map(e=>e.charCodeAt(0))
450453
:data
451454
);
@@ -606,7 +609,7 @@ export class InputHandler extends Disposable implements IInputHandler {
606609
// since an empty cell is only set by fullwidth chars
607610
bufferRow.addCodepointToCell(this._activeBuffer.x-offset,
608611
code,chWidth);
609-
for(letdelta=chWidth-oldWidth;--delta>=0;){
612+
for(letdelta=chWidth-oldWidth;--delta>=0;){
610613
bufferRow.setCellFromCodepoint(this._activeBuffer.x++,0,0,curAttr);
611614
}
612615
continue;
@@ -1622,7 +1625,7 @@ export class InputHandler extends Disposable implements IInputHandler {
16221625
consttext=bufferRow.getString(x);
16231626
constdata=newUint32Array(text.length*length);
16241627
letidata=0;
1625-
for(letitext=0;itext<text.length;){
1628+
for(letitext=0;itext<text.length;){
16261629
constch=text.codePointAt(itext)||0;
16271630
data[idata++]=ch;
16281631
itext+=ch>0xffff ?2 :1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp