aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 09:15:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 09:17:13 +0100
commit589d3eb48fcb30163c9ac3f4b8d5e802e3f45118 (patch)
tree1776b7f0d89f42db17f07decd1a201aefa5be9a1 /tmux.h
parentcf6034da92df1dec0a2ea6230bd7a424d0d181a8 (diff)
downloadrtmux-589d3eb48fcb30163c9ac3f4b8d5e802e3f45118.tar.gz
rtmux-589d3eb48fcb30163c9ac3f4b8d5e802e3f45118.tar.bz2
rtmux-589d3eb48fcb30163c9ac3f4b8d5e802e3f45118.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 1e496e6f..b0abb523 100644
--- a/tmux.h
+++ b/tmux.h
@@ -795,6 +795,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;
@@ -808,8 +816,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 */
@@ -1297,7 +1305,7 @@ struct tty {
u_int cx;
u_int cy;
- u_int cstyle;
+ enum screen_cursor_style cstyle;
char *ccolour;
int oflag;