feat: allow cursor shape configuration for mini and overlay modes

This commit is contained in:
CJ van den Berg 2024-12-20 13:59:08 +01:00
parent d2671259f4
commit ca784d1712
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 6 additions and 9 deletions

View file

@ -39,7 +39,7 @@ pub fn Options(context: type) type {
const tui_ = tui.current();
if (tui_.config.enable_terminal_cursor) {
const y, const x = self.plane.rel_yx_to_abs(0, pos + 1);
tui_.rdr.cursor_enable(y, x, .default) catch {};
tui_.rdr.cursor_enable(y, x, tui_.get_cursor_shape()) catch {};
} else {
self.plane.cursor_move_yx(0, pos + 1) catch return false;
var cell = self.plane.cell_init();