summaryrefslogtreecommitdiff
path: root/src/term.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-19 19:40:50 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-19 19:40:50 +0200
commit3eee06e7d4c3a8e2dbb2577a1eef0e0f108e0288 (patch)
treee12dd15999d5dd73645f2276842ff5f09c89a4bf /src/term.h
parent683b7967253ecd44476a5a01d857271c0d3ff4f4 (diff)
downloadvim-git-3eee06e7d4c3a8e2dbb2577a1eef0e0f108e0288.tar.gz
patch 8.0.0965: not restoring cursor shape after it was set in a terminalv8.0.0965
Problem: The cursor shape is not reset after it was changed in a terminal. Solution: Request the original cursor shape and restore it. Add t_RS. Do not add t_SH for now, it does not work properly.
Diffstat (limited to 'src/term.h')
-rw-r--r--src/term.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.h b/src/term.h
index 66ad4c66c..00e3c96aa 100644
--- a/src/term.h
+++ b/src/term.h
@@ -41,6 +41,7 @@ enum SpecialKey
KS_VE, /* cursor visible */
KS_VS, /* cursor very visible */
KS_CSH, /* cursor shape */
+ KS_CRS, /* request cursor shape */
KS_ME, /* normal mode */
KS_MR, /* reverse mode */
KS_MD, /* bold mode */
@@ -132,6 +133,7 @@ extern char_u *(term_strings[]); /* current terminal strings */
#define T_VE (TERM_STR(KS_VE)) /* cursor visible */
#define T_VS (TERM_STR(KS_VS)) /* cursor very visible */
#define T_CSH (TERM_STR(KS_CSH)) /* cursor shape */
+#define T_CRS (TERM_STR(KS_CRS)) /* request cursor shape */
#define T_ME (TERM_STR(KS_ME)) /* normal mode */
#define T_MR (TERM_STR(KS_MR)) /* reverse mode */
#define T_MD (TERM_STR(KS_MD)) /* bold mode */