From 4d8eb0a7c13a69afe30f6a251ff0d72281650f77 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 28 Dec 2025 19:37:00 -0500 Subject: different cursor shape in insert vs normal mode --- vui.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vui.h') diff --git a/vui.h b/vui.h index c8f7a50..1bf43a0 100644 --- a/vui.h +++ b/vui.h @@ -74,6 +74,16 @@ typedef enum { A_REVERSE = 1 << 13, } VuiAttr; +typedef enum { + VUI_CURS_BLOCK_BLINK, + VUI_CURS_DEFAULT, + VUI_CURS_BLOCK, + VUI_CURS_UNDERLINE_BLINK, + VUI_CURS_UNDERLINE, + VUI_CURS_BAR_BLINK, + VUI_CURS_BAR, +} VuiCursorShape; + #define ATTR_FG(a) ((a) & 0xf) #define ATTR_BG(a) (((a)>>4) & 0xf) #define ATTR_A(a) ((a) & ~0xff) @@ -132,6 +142,7 @@ void vui_fill_rect(VuiChar c, VuiAttr a, int x0, int y0, int width, int height); void vui_curs_vis(int vis); void vui_curs_pos(int x, int y); +void vui_curs_shape(VuiCursorShape sh); void vui_redraw_fn(void (*fn)(void *ctx)); void vui_redraw_ctx(void *ctx); -- cgit v1.2.3