mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
This commit is contained in:
4
input.c
4
input.c
@ -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);
|
||||
|
Reference in New Issue
Block a user