diff options
author | nicm <nicm> | 2015-01-20 08:18:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-01-20 08:18:04 +0000 |
commit | 16bdd970dcc68e50f26c512b3ead628b9b899c88 (patch) | |
tree | 62d7c4b928766cfc532ab197adf4482116439d1b /input.c | |
parent | d45150267656530b8503375555a1814fcfe6a15a (diff) | |
download | rtmux-16bdd970dcc68e50f26c512b3ead628b9b899c88.tar.gz rtmux-16bdd970dcc68e50f26c512b3ead628b9b899c88.tar.bz2 rtmux-16bdd970dcc68e50f26c512b3ead628b9b899c88.zip |
Support blinking cursor mode, both the xterm CSI ?12 h/l and (the
backwards) screen CSI 34 h/l. From Guanpeng Xu.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1342,6 +1342,9 @@ input_csi_dispatch_rm(struct input_ctx *ictx) case 4: /* IRM */ screen_write_mode_clear(&ictx->ctx, MODE_INSERT); break; + case 34: + screen_write_mode_set(&ictx->ctx, MODE_BLINKING); + break; default: log_debug("%s: unknown '%c'", __func__, ictx->ch); break; @@ -1368,6 +1371,9 @@ input_csi_dispatch_rm_private(struct input_ctx *ictx) case 7: /* DECAWM */ screen_write_mode_clear(&ictx->ctx, MODE_WRAP); break; + case 12: + screen_write_mode_clear(&ictx->ctx, MODE_BLINKING); + break; case 25: /* TCEM */ screen_write_mode_clear(&ictx->ctx, MODE_CURSOR); break; @@ -1413,6 +1419,9 @@ input_csi_dispatch_sm(struct input_ctx *ictx) case 4: /* IRM */ screen_write_mode_set(&ictx->ctx, MODE_INSERT); break; + case 34: + screen_write_mode_clear(&ictx->ctx, MODE_BLINKING); + break; default: log_debug("%s: unknown '%c'", __func__, ictx->ch); break; @@ -1439,6 +1448,9 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx) case 7: /* DECAWM */ screen_write_mode_set(&ictx->ctx, MODE_WRAP); break; + case 12: + screen_write_mode_set(&ictx->ctx, MODE_BLINKING); + break; case 25: /* TCEM */ screen_write_mode_set(&ictx->ctx, MODE_CURSOR); break; |