@@ -519,7 +519,7 @@ export class InputHandler extends Disposable implements IInputHandler {
519
519
520
520
// handle wide chars: reset start_cell-1 if we would overwrite the second cell of a wide char
521
521
if ( this . _activeBuffer . x && end - start > 0 && bufferRow . getWidth ( this . _activeBuffer . x - 1 ) === 2 ) {
522
- bufferRow . setCellFromCodePoint ( this . _activeBuffer . x - 1 , 0 , 1 , curAttr . fg , curAttr . bg , curAttr . extended ) ;
522
+ bufferRow . setCellFromCodepoint ( this . _activeBuffer . x - 1 , 0 , 1 , curAttr ) ;
523
523
}
524
524
525
525
let precedingJoinState = this . _parser . precedingJoinState ;
@@ -581,7 +581,7 @@ export class InputHandler extends Disposable implements IInputHandler {
581
581
}
582
582
// clear left over cells to the right
583
583
while ( oldCol < cols ) {
584
- oldRow . setCellFromCodePoint ( oldCol ++ , 0 , 1 , curAttr . fg , curAttr . bg , curAttr . extended ) ;
584
+ oldRow . setCellFromCodepoint ( oldCol ++ , 0 , 1 , curAttr ) ;
585
585
}
586
586
} else {
587
587
this . _activeBuffer . x = cols - 1 ;
@@ -605,33 +605,33 @@ export class InputHandler extends Disposable implements IInputHandler {
605
605
bufferRow . addCodepointToCell ( this . _activeBuffer . x - offset ,
606
606
code , chWidth ) ;
607
607
for ( let delta = chWidth - oldWidth ; -- delta >= 0 ; ) {
608
- bufferRow . setCellFromCodePoint ( this . _activeBuffer . x ++ , 0 , 0 , curAttr . fg , curAttr . bg , curAttr . extended ) ;
608
+ bufferRow . setCellFromCodepoint ( this . _activeBuffer . x ++ , 0 , 0 , curAttr ) ;
609
609
}
610
610
continue ;
611
611
}
612
612
613
613
// insert mode: move characters to right
614
614
if ( insertMode ) {
615
615
// right shift cells according to the width
616
- bufferRow . insertCells ( this . _activeBuffer . x , chWidth - oldWidth , this . _activeBuffer . getNullCell ( curAttr ) , curAttr ) ;
616
+ bufferRow . insertCells ( this . _activeBuffer . x , chWidth - oldWidth , this . _activeBuffer . getNullCell ( curAttr ) ) ;
617
617
// test last cell - since the last cell has only room for
618
618
// a halfwidth char any fullwidth shifted there is lost
619
619
// and will be set to empty cell
620
620
if ( bufferRow . getWidth ( cols - 1 ) === 2 ) {
621
- bufferRow . setCellFromCodePoint ( cols - 1 , NULL_CELL_CODE , NULL_CELL_WIDTH , curAttr . fg , curAttr . bg , curAttr . extended ) ;
621
+ bufferRow . setCellFromCodepoint ( cols - 1 , NULL_CELL_CODE , NULL_CELL_WIDTH , curAttr ) ;
622
622
}
623
623
}
624
624
625
625
// write current char to buffer and advance cursor
626
- bufferRow . setCellFromCodePoint ( this . _activeBuffer . x ++ , code , chWidth , curAttr . fg , curAttr . bg , curAttr . extended ) ;
626
+ bufferRow . setCellFromCodepoint ( this . _activeBuffer . x ++ , code , chWidth , curAttr ) ;
627
627
628
628
// fullwidth char - also set next cell to placeholder stub and advance cursor
629
629
// for graphemes bigger than fullwidth we can simply loop to zero
630
630
// we already made sure above, that this._activeBuffer.x + chWidth will not overflow right
631
631
if ( chWidth > 0 ) {
632
632
while ( -- chWidth ) {
633
633
// other than a regular empty cell a cell following a wide char has no width
634
- bufferRow . setCellFromCodePoint ( this . _activeBuffer . x ++ , 0 , 0 , curAttr . fg , curAttr . bg , curAttr . extended ) ;
634
+ bufferRow . setCellFromCodepoint ( this . _activeBuffer . x ++ , 0 , 0 , curAttr ) ;
635
635
}
636
636
}
637
637
}
@@ -640,7 +640,7 @@ export class InputHandler extends Disposable implements IInputHandler {
640
640
641
641
// handle wide chars: reset cell to the right if it is second cell of a wide char
642
642
if ( this . _activeBuffer . x < cols && end - start > 0 && bufferRow . getWidth ( this . _activeBuffer . x ) === 0 && ! bufferRow . hasContent ( this . _activeBuffer . x ) ) {
643
- bufferRow . setCellFromCodePoint ( this . _activeBuffer . x , 0 , 1 , curAttr . fg , curAttr . bg , curAttr . extended ) ;
643
+ bufferRow . setCellFromCodepoint ( this . _activeBuffer . x , 0 , 1 , curAttr ) ;
644
644
}
645
645
646
646
this . _dirtyRowTracker . markDirty ( this . _activeBuffer . y ) ;
@@ -1145,7 +1145,6 @@ export class InputHandler extends Disposable implements IInputHandler {
1145
1145
start ,
1146
1146
end ,
1147
1147
this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ,
1148
- this . _eraseAttrData ( ) ,
1149
1148
respectProtect
1150
1149
) ;
1151
1150
if ( clearWrap ) {
@@ -1366,8 +1365,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1366
1365
line . insertCells (
1367
1366
this . _activeBuffer . x ,
1368
1367
params . params [ 0 ] || 1 ,
1369
- this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ,
1370
- this . _eraseAttrData ( )
1368
+ this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) )
1371
1369
) ;
1372
1370
this . _dirtyRowTracker . markDirty ( this . _activeBuffer . y ) ;
1373
1371
}
@@ -1393,8 +1391,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1393
1391
line . deleteCells (
1394
1392
this . _activeBuffer . x ,
1395
1393
params . params [ 0 ] || 1 ,
1396
- this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ,
1397
- this . _eraseAttrData ( )
1394
+ this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) )
1398
1395
) ;
1399
1396
this . _dirtyRowTracker . markDirty ( this . _activeBuffer . y ) ;
1400
1397
}
@@ -1461,7 +1458,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1461
1458
const param = params . params [ 0 ] || 1 ;
1462
1459
for ( let y = this . _activeBuffer . scrollTop ; y <= this . _activeBuffer . scrollBottom ; ++ y ) {
1463
1460
const line = this . _activeBuffer . lines . get ( this . _activeBuffer . ybase + y ) ! ;
1464
- line . deleteCells ( 0 , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) , this . _eraseAttrData ( ) ) ;
1461
+ line . deleteCells ( 0 , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ) ;
1465
1462
line . isWrapped = false ;
1466
1463
}
1467
1464
this . _dirtyRowTracker . markRangeDirty ( this . _activeBuffer . scrollTop , this . _activeBuffer . scrollBottom ) ;
@@ -1494,7 +1491,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1494
1491
const param = params . params [ 0 ] || 1 ;
1495
1492
for ( let y = this . _activeBuffer . scrollTop ; y <= this . _activeBuffer . scrollBottom ; ++ y ) {
1496
1493
const line = this . _activeBuffer . lines . get ( this . _activeBuffer . ybase + y ) ! ;
1497
- line . insertCells ( 0 , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) , this . _eraseAttrData ( ) ) ;
1494
+ line . insertCells ( 0 , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ) ;
1498
1495
line . isWrapped = false ;
1499
1496
}
1500
1497
this . _dirtyRowTracker . markRangeDirty ( this . _activeBuffer . scrollTop , this . _activeBuffer . scrollBottom ) ;
@@ -1517,7 +1514,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1517
1514
const param = params . params [ 0 ] || 1 ;
1518
1515
for ( let y = this . _activeBuffer . scrollTop ; y <= this . _activeBuffer . scrollBottom ; ++ y ) {
1519
1516
const line = this . _activeBuffer . lines . get ( this . _activeBuffer . ybase + y ) ! ;
1520
- line . insertCells ( this . _activeBuffer . x , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) , this . _eraseAttrData ( ) ) ;
1517
+ line . insertCells ( this . _activeBuffer . x , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ) ;
1521
1518
line . isWrapped = false ;
1522
1519
}
1523
1520
this . _dirtyRowTracker . markRangeDirty ( this . _activeBuffer . scrollTop , this . _activeBuffer . scrollBottom ) ;
@@ -1540,7 +1537,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1540
1537
const param = params . params [ 0 ] || 1 ;
1541
1538
for ( let y = this . _activeBuffer . scrollTop ; y <= this . _activeBuffer . scrollBottom ; ++ y ) {
1542
1539
const line = this . _activeBuffer . lines . get ( this . _activeBuffer . ybase + y ) ! ;
1543
- line . deleteCells ( this . _activeBuffer . x , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) , this . _eraseAttrData ( ) ) ;
1540
+ line . deleteCells ( this . _activeBuffer . x , param , this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ) ;
1544
1541
line . isWrapped = false ;
1545
1542
}
1546
1543
this . _dirtyRowTracker . markRangeDirty ( this . _activeBuffer . scrollTop , this . _activeBuffer . scrollBottom ) ;
@@ -1562,8 +1559,7 @@ export class InputHandler extends Disposable implements IInputHandler {
1562
1559
line . replaceCells (
1563
1560
this . _activeBuffer . x ,
1564
1561
this . _activeBuffer . x + ( params . params [ 0 ] || 1 ) ,
1565
- this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) ) ,
1566
- this . _eraseAttrData ( )
1562
+ this . _activeBuffer . getNullCell ( this . _eraseAttrData ( ) )
1567
1563
) ;
1568
1564
this . _dirtyRowTracker . markDirty ( this . _activeBuffer . y ) ;
1569
1565
}
0 commit comments