aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorjixiufeng <jixiufeng@luojilab.com>2019-05-18 00:05:35 +0800
committerjixiufeng <jixiufeng@luojilab.com>2019-05-18 00:05:35 +0800
commitdce7666b83d8c3a8d9ef9da532b3ac85590a926d (patch)
tree28375d95fe1c87bf7544934e0b36586e486bccb4 /vterm-module.h
parent74b8e5cb2d1c6798c42e56ae444e5e96c629f2c5 (diff)
support set cursor type
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/vterm-module.h b/vterm-module.h
index d3d0a08..e9378d2 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -23,11 +23,20 @@ typedef struct ScrollbackLine {
VTermScreenCell cells[];
} ScrollbackLine;
+enum {
+ VTERM_PROP_CURSOR_BLOCK = VTERM_PROP_CURSORSHAPE_BLOCK,
+ VTERM_PROP_CURSOR_UNDERLINE = VTERM_PROP_CURSORSHAPE_UNDERLINE,
+ VTERM_PROP_CURSOR_BAR_LEFT = VTERM_PROP_CURSORSHAPE_BAR_LEFT,
+ VTERM_PROP_CURSOR_VISIBLE = 4,
+ VTERM_PROP_CURSOR_NOT_VISIBLE = 5,
+};
+
typedef struct Cursor {
int row, col;
bool blinking;
bool blinking_changed;
- bool visible;
+ int cursor_type;
+ bool cursor_type_changed;
} Cursor;
typedef struct Term {