fix(terminal): native cursor support in terminal_view
This commit is contained in:
parent
a7df06da8b
commit
c463a37179
1 changed files with 6 additions and 0 deletions
|
|
@ -388,6 +388,12 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool {
|
||||||
std.log.err("terminal_view: draw failed: {}", .{e});
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue