diff options
author | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
commit | 57100376cc70739f53a1f8a4bacf192b8cdcd124 (patch) | |
tree | ba38ff2eea97bea502e9005ed529616008ab4d9e /input.c | |
parent | 200b6536e13b41a6fed72c0ca4f364f270bfe382 (diff) |
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1619,7 +1619,7 @@ input_csi_dispatch(struct input_ctx *ictx) case INPUT_CSI_DECSCUSR: n = input_get(ictx, 0, 0, 0); if (n != -1) - screen_set_cursor_style(s, n); + screen_set_cursor_style(n, &s->cstyle, &s->mode); break; case INPUT_CSI_XDA: n = input_get(ictx, 0, 0, 0); @@ -1685,6 +1685,7 @@ input_csi_dispatch_rm_private(struct input_ctx *ictx) break; case 12: screen_write_mode_clear(sctx, MODE_CURSOR_BLINKING); + screen_write_mode_set(sctx, MODE_CURSOR_BLINKING_SET); break; case 25: /* TCEM */ screen_write_mode_clear(sctx, MODE_CURSOR); @@ -1774,6 +1775,7 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx) break; case 12: screen_write_mode_set(sctx, MODE_CURSOR_BLINKING); + screen_write_mode_set(sctx, MODE_CURSOR_BLINKING_SET); break; case 25: /* TCEM */ screen_write_mode_set(sctx, MODE_CURSOR); |