ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

custom shader: added cursor style and visibility uniforms

Open ClearAspect opened this issue 2 months ago • 1 comments

Fixes: #9416

Specifically: iCurrentCursorStyle iPreviousCursorStyle iCurrentCursorVisible iPreviousCursorVisible

Visibility calculated and updated independently from the typical cursor uniform updates to preserve cursor style even when not in the viewport or set to be hidden

I used Claude-Code to initially navigate and gauge an understanding of the rendering system. Otherwise I authored the rest of the PR

ClearAspect avatar Nov 13 '25 05:11 ClearAspect

While I was working on another issue, I just realized I could have also used the surface mailbox to get the cursor style information from the surface renderer state. Seems like that's the better way to do it from my understanding and I'll happily rewrite this.

ClearAspect avatar Nov 17 '25 17:11 ClearAspect