mirror of
https://github.com/tmux/tmux.git
synced 2026-01-11 08:21:52 +00:00
Merge branch 'obsd-master'
This commit is contained in:
7
input.c
7
input.c
@@ -3432,14 +3432,19 @@ input_cancel_requests(struct client *c)
|
||||
static void
|
||||
input_report_current_theme(struct input_ctx *ictx)
|
||||
{
|
||||
switch (window_pane_get_theme(ictx->wp)) {
|
||||
struct window_pane *wp = ictx->wp;
|
||||
|
||||
switch (window_pane_get_theme(wp)) {
|
||||
case THEME_DARK:
|
||||
log_debug("%s: %%%u dark theme", __func__, wp->id);
|
||||
input_reply(ictx, 0, "\033[?997;1n");
|
||||
break;
|
||||
case THEME_LIGHT:
|
||||
log_debug("%s: %%%u light theme", __func__, wp->id);
|
||||
input_reply(ictx, 0, "\033[?997;2n");
|
||||
break;
|
||||
case THEME_UNKNOWN:
|
||||
log_debug("%s: %%%u unknown theme", __func__, wp->id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user