diff options
author | nicm <nicm> | 2021-11-01 09:34:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-11-01 09:34:49 +0000 |
commit | 8d2286b76917debc4f6c3b0903ad2807ae254bb5 (patch) | |
tree | 5eb3353a6ecebeb3defb4701f63b75cbcfd81a61 /options.c | |
parent | 4fe5aa99fb203ddb25089955d8814e1065e11a60 (diff) | |
download | rtmux-8d2286b76917debc4f6c3b0903ad2807ae254bb5.tar.gz rtmux-8d2286b76917debc4f6c3b0903ad2807ae254bb5.tar.bz2 rtmux-8d2286b76917debc4f6c3b0903ad2807ae254bb5.zip |
Add a cursor-colour option, from Alexis Hildebrandt in GitHub issue
2959.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1106,15 +1106,22 @@ options_push_changes(const char *name) struct session *s; struct window *w; struct window_pane *wp; + int c; if (strcmp(name, "automatic-rename") == 0) { RB_FOREACH(w, windows, &windows) { if (w->active == NULL) continue; - if (options_get_number(w->options, "automatic-rename")) + if (options_get_number(w->options, name)) w->active->flags |= PANE_CHANGED; } } + if (strcmp(name, "cursor-colour") == 0) { + RB_FOREACH(wp, window_pane_tree, &all_window_panes) { + c = options_get_number(wp->options, name); + wp->screen->default_ccolour = c; + } + } if (strcmp(name, "key-table") == 0) { TAILQ_FOREACH(loop, &clients, entry) server_client_set_key_table(loop, NULL); |