@xterm/addon-webgl 0.19.0-beta.73 → 0.19.0-beta.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-webgl",
3
- "version": "0.19.0-beta.73",
3
+ "version": "0.19.0-beta.75",
4
4
  "author": {
5
5
  "name": "The xterm.js authors",
6
6
  "url": "https://xtermjs.org/"
@@ -24,7 +24,7 @@
24
24
  "start": "node ../../demo/start"
25
25
  },
26
26
  "peerDependencies": {
27
- "@xterm/xterm": "^5.6.0-beta.73"
27
+ "@xterm/xterm": "^5.6.0-beta.75"
28
28
  },
29
- "commit": "d5a2fed6792e987fc98eef6cd86fdcac0377cc9f"
29
+ "commit": "ce095b35936844055924c9b66ec3e89aef5cbca4"
30
30
  }
@@ -354,7 +354,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
354
354
  }
355
355
 
356
356
  private _updateCursorBlink(): void {
357
- if (this._terminal.options.cursorBlink) {
357
+ if (this._coreService.decPrivateModes.cursorBlink ?? this._terminal.options.cursorBlink) {
358
358
  this._cursorBlinkStateManager.value = new CursorBlinkStateManager(() => {
359
359
  this._requestRedrawCursor();
360
360
  }, this._coreBrowserService);
@@ -387,6 +387,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
387
387
  let j: number;
388
388
  start = clamp(start, terminal.rows - 1, 0);
389
389
  end = clamp(end, terminal.rows - 1, 0);
390
+ const cursorStyle = this._coreService.decPrivateModes.cursorStyle ?? terminal.options.cursorStyle ?? 'block';
390
391
 
391
392
  const cursorY = this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY;
392
393
  const viewportRelativeCursorY = cursorY - terminal.buffer.ydisp;
@@ -450,8 +451,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
450
451
  x: cursorX,
451
452
  y: viewportRelativeCursorY,
452
453
  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,
455
455
  cursorWidth: terminal.options.cursorWidth,
456
456
  dpr: this._devicePixelRatio
457
457
  };
@@ -459,9 +459,10 @@ export class WebglRenderer extends Disposable implements IRenderer {
459
459
  }
460
460
  if (x >= cursorX && x <= lastCursorX &&
461
461
  ((this._coreBrowserService.isFocused &&
462
- (terminal.options.cursorStyle || 'block') === 'block') ||
462
+ cursorStyle === 'block') ||
463
463
  (this._coreBrowserService.isFocused === false &&
464
- terminal.options.cursorInactiveStyle === 'block'))) {
464
+ terminal.options.cursorInactiveStyle === 'block'))
465
+ ) {
465
466
  this._cellColorResolver.result.fg =
466
467
  Attributes.CM_RGB | (this._themeService.colors.cursorAccent.rgba >> 8 & Attributes.RGB_MASK);
467
468
  this._cellColorResolver.result.bg =