summaryrefslogtreecommitdiff
path: root/src/libvterm/src/state.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-12 19:51:41 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-12 19:51:41 +0200
commit3cd43ccccb03b2e68df9c8a344a87e51c007c656 (patch)
tree51e41f2ba0520be2c6f4b0753538259545feca05 /src/libvterm/src/state.c
parent589b1109c55409baf27f79920d8ffc95111eaa01 (diff)
downloadvim-git-3cd43ccccb03b2e68df9c8a344a87e51c007c656.tar.gz
patch 8.0.0918: cannot get terminal window cursor shape or attributesv8.0.0918
Problem: Cannot get terminal window cursor shape or attributes. Solution: Support cursor shape, attributes and color.
Diffstat (limited to 'src/libvterm/src/state.c')
-rw-r--r--src/libvterm/src/state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c
index 8f8909e2f..88c259c34 100644
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -1504,6 +1504,10 @@ static int on_osc(const char *command, size_t cmdlen, void *user)
settermprop_string(state, VTERM_PROP_TITLE, command + 2, cmdlen - 2);
return 1;
}
+ else if(strneq(command, "12;", 3)) {
+ settermprop_string(state, VTERM_PROP_CURSORCOLOR, command + 3, cmdlen - 3);
+ return 1;
+ }
else if(state->fallbacks && state->fallbacks->osc)
if((*state->fallbacks->osc)(command, cmdlen, state->fbdata))
return 1;
@@ -1819,6 +1823,7 @@ int vterm_state_set_termprop(VTermState *state, VTermProp prop, VTermValue *val)
switch(prop) {
case VTERM_PROP_TITLE:
case VTERM_PROP_ICONNAME:
+ case VTERM_PROP_CURSORCOLOR:
/* we don't store these, just transparently pass through */
return 1;
case VTERM_PROP_CURSORVISIBLE: