aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:36:47 +0000
committernicm <nicm>2021-06-10 07:36:47 +0000
commitf9f97c8145e97b0295f0792a643286126fe2d3f8 (patch)
tree4697fc251c1e9129ac4dc42c42a4d0266ea0b48b /tmux.h
parent84e22168a52f8fe0fa0ef0431d1752273f53e8bd (diff)
downloadrtmux-f9f97c8145e97b0295f0792a643286126fe2d3f8.tar.gz
rtmux-f9f97c8145e97b0295f0792a643286126fe2d3f8.tar.bz2
rtmux-f9f97c8145e97b0295f0792a643286126fe2d3f8.zip
Change cursor style handling so tmux understands which sequences contain
blinking and sets the flag appropriately, means that it works whether cnorm disables blinking or not. GitHub issue 2682.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 508fddd3..96d829fb 100644
--- a/tmux.h
+++ b/tmux.h
@@ -794,6 +794,14 @@ struct style {
enum style_default_type default_type;
};
+/* Cursor style. */
+enum screen_cursor_style {
+ SCREEN_CURSOR_DEFAULT,
+ SCREEN_CURSOR_BLOCK,
+ SCREEN_CURSOR_UNDERLINE,
+ SCREEN_CURSOR_BAR
+};
+
/* Virtual screen. */
struct screen_sel;
struct screen_titles;
@@ -807,8 +815,8 @@ struct screen {
u_int cx; /* cursor x */
u_int cy; /* cursor y */
- u_int cstyle; /* cursor style */
- char *ccolour; /* cursor colour string */
+ enum screen_cursor_style cstyle; /* cursor style */
+ char *ccolour; /* cursor colour */
u_int rupper; /* scroll region top */
u_int rlower; /* scroll region bottom */
@@ -1296,7 +1304,7 @@ struct tty {
u_int cx;
u_int cy;
- u_int cstyle;
+ enum screen_cursor_style cstyle;
char *ccolour;
int oflag;