@@ -354,7 +354,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
354354 }
355355
356356 private _updateCursorBlink ( ) : void {
357- if ( this . _terminal . options . cursorBlink ) {
357+ if ( this . _coreService . decPrivateModes . cursorBlink ?? this . _terminal . options . cursorBlink ) {
358358 this . _cursorBlinkStateManager . value = new CursorBlinkStateManager ( ( ) => {
359359 this . _requestRedrawCursor ( ) ;
360360 } , this . _coreBrowserService ) ;
@@ -387,6 +387,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
387387 let j : number ;
388388 start = clamp ( start , terminal . rows - 1 , 0 ) ;
389389 end = clamp ( end , terminal . rows - 1 , 0 ) ;
390+ const cursorStyle = this . _coreService . decPrivateModes . cursorStyle ?? terminal . options . cursorStyle ?? 'block' ;
390391
391392 const cursorY = this . _terminal . buffer . active . baseY + this . _terminal . buffer . active . cursorY ;
392393 const viewportRelativeCursorY = cursorY - terminal . buffer . ydisp ;
@@ -450,18 +451,18 @@ export class WebglRenderer extends Disposable implements IRenderer {
450451 x : cursorX ,
451452 y : viewportRelativeCursorY ,
452453 width : cell . getWidth ( ) ,
453- style : this . _coreBrowserService . isFocused ?
454- ( terminal . options . cursorStyle || 'block' ) : terminal . options . cursorInactiveStyle ,
454+ style : this . _coreBrowserService . isFocused ? cursorStyle : terminal . options . cursorInactiveStyle ,
455455 cursorWidth : terminal . options . cursorWidth ,
456456 dpr : this . _devicePixelRatio
457457 } ;
458458 lastCursorX = cursorX + cell . getWidth ( ) - 1 ;
459459 }
460460 if ( x >= cursorX && x <= lastCursorX &&
461461 ( ( this . _coreBrowserService . isFocused &&
462- ( terminal . options . cursorStyle || 'block' ) === 'block' ) ||
462+ cursorStyle === 'block' ) ||
463463 ( this . _coreBrowserService . isFocused === false &&
464- terminal . options . cursorInactiveStyle === 'block' ) ) ) {
464+ terminal . options . cursorInactiveStyle === 'block' ) )
465+ ) {
465466 this . _cellColorResolver . result . fg =
466467 Attributes . CM_RGB | ( this . _themeService . colors . cursorAccent . rgba >> 8 & Attributes . RGB_MASK ) ;
467468 this . _cellColorResolver . result . bg =
0 commit comments