Skip to content

Commit f64cb15

Browse files
committed
Correctly apply cursor colors in new renderer
1 parent 9b204c0 commit f64cb15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/xterm-addon-webgl/src/WebglRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ export class WebglRenderer extends Disposable implements IRenderer {
471471
this._coreBrowserService.isFocused &&
472472
(terminal.options.cursorStyle || 'block') === 'block') {
473473
this._cellColorResolver.result.fg =
474-
Attributes.CM_RGB | this._themeService.colors.cursorAccent.rgba & Attributes.RGB_MASK;
474+
Attributes.CM_RGB | (this._themeService.colors.cursorAccent.rgba >> 8 & Attributes.RGB_MASK);
475475
this._cellColorResolver.result.bg =
476-
Attributes.CM_RGB | this._themeService.colors.cursor.rgba & Attributes.RGB_MASK;
476+
Attributes.CM_RGB | (this._themeService.colors.cursor.rgba >> 8 & Attributes.RGB_MASK);
477477
}
478478
}
479479

0 commit comments

Comments
 (0)