From 25a78c77f24f130a5a7154855b4c3c783cfbd325 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:11:17 -0700 Subject: [PATCH] Simplify cursor style types in webgl Fixes #4686 --- addons/xterm-addon-webgl/src/Types.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/xterm-addon-webgl/src/Types.d.ts b/addons/xterm-addon-webgl/src/Types.d.ts index 3eb3b300c0..fe6e10c729 100644 --- a/addons/xterm-addon-webgl/src/Types.d.ts +++ b/addons/xterm-addon-webgl/src/Types.d.ts @@ -4,6 +4,7 @@ */ import { ISelectionRenderModel } from 'browser/renderer/shared/Types'; +import { CursorInactiveStyle, CursorStyle } from 'common/Types'; export interface IRenderModel { cells: Uint32Array; @@ -16,13 +17,11 @@ export interface ICursorRenderModel { x: number; y: number; width: number; - style: CursorStyle; + style: CursorStyle | CursorInactiveStyle; cursorWidth: number; dpr: number; } -export type CursorStyle = 'outline' | 'block' | 'bar' | 'underline' | 'none'; - export interface IWebGL2RenderingContext extends WebGLRenderingContext { vertexAttribDivisor(index: number, divisor: number): void; createVertexArray(): IWebGLVertexArrayObject;