Skip to content

Commit

Permalink
Merge pull request #4688 from Tyriar/cursor_style
Browse files Browse the repository at this point in the history
Simplify cursor style types in webgl
  • Loading branch information
Tyriar committed Aug 19, 2023
2 parents 7b7dbd3 + 25a78c7 commit ef1cd43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/xterm-addon-webgl/src/Types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { ISelectionRenderModel } from 'browser/renderer/shared/Types';
import { CursorInactiveStyle, CursorStyle } from 'common/Types';

export interface IRenderModel {
cells: Uint32Array;
Expand All @@ -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;
Expand Down

0 comments on commit ef1cd43

Please sign in to comment.