fix(terminal): native cursor support in terminal_view

This commit is contained in:
CJ van den Berg 2026-04-07 22:08:18 +02:00
parent a7df06da8b
commit c463a37179
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -388,6 +388,12 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool {
std.log.err("terminal_view: draw failed: {}", .{e});
};
if (!software_cursor and self.focused and tui.terminal_has_focus()) {
const scr = &tui.rdr().vx.screen;
if (scr.cursor_vis)
tui.rdr().cursor_enable(@intCast(scr.cursor.row), @intCast(scr.cursor.col), scr.cursor_shape) catch {};
}
return false;
}