aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorYubao Liu <yubao.liu@gmail.com>2021-01-11 12:32:08 +0800
committerYubao Liu <yubao.liu@gmail.com>2021-01-11 12:32:08 +0800
commitefc75ea3f3a7338fb5c87e70ce8c501fb0b3549a (patch)
treef1b930d3910b1d1c84fa309b652b2cddda76d333 /vterm-module.h
parentb6592f94d76098d19f242c0d09f660f6a6461b76 (diff)
fix cursor type after hide cursor and show again
This patch also adds support for cursor blink. VIM emits these ANSI escape sequences in insert mode: \x1b[?25h show cursor \x1b[?25l hide cursor
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 6330827..78964a7 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -30,14 +30,6 @@ 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,
-};
-
/* c , p , q , s , 0 , 1 , 2 , 3 , 4 , 5 , 6 , and 7 */
/* clipboard, primary, secondary, select, or cut buffers 0 through 7 */
#define SELECTION_TARGET_MAX 12
@@ -45,7 +37,10 @@ enum {
typedef struct Cursor {
int row, col;
int cursor_type;
+ bool cursor_visible;
+ bool cursor_blink;
bool cursor_type_changed;
+ bool cursor_blink_changed;
} Cursor;
typedef struct Term {
@@ -94,6 +89,7 @@ typedef struct Term {
bool disable_bold_font;
bool disable_underline;
bool disable_inverse_video;
+ bool ignore_blink_cursor;
char *cmd_buffer;