diff options
| author | jixiufeng <jixiufeng@luojilab.com> | 2019-05-18 00:05:35 +0800 |
|---|---|---|
| committer | jixiufeng <jixiufeng@luojilab.com> | 2019-05-18 00:05:35 +0800 |
| commit | dce7666b83d8c3a8d9ef9da532b3ac85590a926d (patch) | |
| tree | 28375d95fe1c87bf7544934e0b36586e486bccb4 /vterm-module.h | |
| parent | 74b8e5cb2d1c6798c42e56ae444e5e96c629f2c5 (diff) | |
support set cursor type
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 11 |
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 { |
