renderer: added cursor style and visibility uniforms

Specifically:
iCurrentCursorStyle
iPreviousCursorStyle
iCurrentCursorVisible
iPreviousCursorVisible

Visibility calculated and updated independently from the typical cursor
unifrom updates to preserve cursor style even when not in the viewport
or set to be hidden
This commit is contained in:
ClearAspect
2025-12-08 22:11:36 -05:00
committed by Mitchell Hashimoto
parent ba593d823c
commit 7a4bddd37b
5 changed files with 47 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ pub const Style = enum {
lock,
/// Create a cursor style from the terminal style request.
pub fn fromTerminal(term: terminal.CursorStyle) ?Style {
pub fn fromTerminal(term: terminal.CursorStyle) Style {
return switch (term) {
.bar => .bar,
.block => .block,