From c463a3717978455ebefc06c00f6125ac0268baf6 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 7 Apr 2026 22:08:18 +0200 Subject: [PATCH] fix(terminal): native cursor support in terminal_view --- src/tui/terminal_view.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tui/terminal_view.zig b/src/tui/terminal_view.zig index 5c379a60..fe9da1eb 100644 --- a/src/tui/terminal_view.zig +++ b/src/tui/terminal_view.zig @@ -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; }