Add a way (refresh-client -r) for control mode clients to provide OSC 10

and 11 responses to tmux so they can set the default foreground and
background colours, from George Nachman in GitHub issue 4014.
This commit is contained in:
nicm
2024-06-24 08:30:50 +00:00
parent db1665868f
commit 093b5a5518
6 changed files with 116 additions and 20 deletions

View File

@ -937,6 +937,9 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
wp->pipe_fd = -1;
wp->control_bg = -1;
wp->control_fg = -1;
colour_palette_init(&wp->palette);
colour_palette_from_option(&wp->palette, wp->options);