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.
This commit is contained in:
Nicholas Marriott
2021-04-28 09:15:11 +01:00
parent cf6034da92
commit 589d3eb48f
3 changed files with 120 additions and 43 deletions

14
tmux.h
View File

@@ -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;