summaryrefslogtreecommitdiff
path: root/vui.h
diff options
context:
space:
mode:
authorWormHeamer2025-12-28 19:37:00 -0500
committerWormHeamer2025-12-28 19:37:00 -0500
commit4d8eb0a7c13a69afe30f6a251ff0d72281650f77 (patch)
tree21920ff54741988ee25171c42f1d53b1269c0fff /vui.h
parentaaa7aa0632040d1be3b16e4a0680e92035c40e12 (diff)
different cursor shape in insert vs normal mode
Diffstat (limited to 'vui.h')
-rw-r--r--vui.h11
1 files changed, 11 insertions, 0 deletions
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);