diff options
author | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
commit | 57100376cc70739f53a1f8a4bacf192b8cdcd124 (patch) | |
tree | ba38ff2eea97bea502e9005ed529616008ab4d9e /options.c | |
parent | 200b6536e13b41a6fed72c0ca4f364f270bfe382 (diff) | |
download | rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.tar.gz rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.tar.bz2 rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.zip |
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1122,6 +1122,14 @@ options_push_changes(const char *name) wp->screen->default_ccolour = c; } } + if (strcmp(name, "cursor-style") == 0) { + RB_FOREACH(wp, window_pane_tree, &all_window_panes) { + wp->screen->default_mode = 0; + screen_set_cursor_style(options_get_number(wp->options, + name), &wp->screen->default_cstyle, + &wp->screen->default_mode); + } + } if (strcmp(name, "key-table") == 0) { TAILQ_FOREACH(loop, &clients, entry) server_client_set_key_table(loop, NULL); |