From f64cb1566d69ca5e16b1121283009cde09c5c861 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 1 Aug 2023 06:31:58 -0700 Subject: [PATCH] Correctly apply cursor colors in new renderer --- addons/xterm-addon-webgl/src/WebglRenderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/xterm-addon-webgl/src/WebglRenderer.ts b/addons/xterm-addon-webgl/src/WebglRenderer.ts index 5b955901..c58818f5 100644 --- a/addons/xterm-addon-webgl/src/WebglRenderer.ts +++ b/addons/xterm-addon-webgl/src/WebglRenderer.ts @@ -471,9 +471,9 @@ export class WebglRenderer extends Disposable implements IRenderer { this._coreBrowserService.isFocused && (terminal.options.cursorStyle || 'block') === 'block') { this._cellColorResolver.result.fg = - Attributes.CM_RGB | this._themeService.colors.cursorAccent.rgba & Attributes.RGB_MASK; + Attributes.CM_RGB | (this._themeService.colors.cursorAccent.rgba >> 8 & Attributes.RGB_MASK); this._cellColorResolver.result.bg = - Attributes.CM_RGB | this._themeService.colors.cursor.rgba & Attributes.RGB_MASK; + Attributes.CM_RGB | (this._themeService.colors.cursor.rgba >> 8 & Attributes.RGB_MASK); } }