Merge branch 'obsd-master' into master

pull/2851/head
Thomas Adam 2021-08-14 18:01:17 +01:00
commit 22e5fc02c3
1 changed files with 24 additions and 16 deletions

View File

@ -2556,11 +2556,13 @@ input_osc_10(struct input_ctx *ictx, const char *p)
log_debug("bad OSC 10: %s", p);
return;
}
if (ictx->palette != NULL) {
ictx->palette->fg = c;
if (wp != NULL)
wp->flags |= PANE_STYLECHANGED;
screen_write_fullredraw(&ictx->ctx);
}
}
/* Handle the OSC 110 sequence for resetting background colour. */
static void
@ -2570,11 +2572,13 @@ input_osc_110(struct input_ctx *ictx, const char *p)
if (*p != '\0')
return;
if (ictx->palette != NULL) {
ictx->palette->fg = 8;
if (wp != NULL)
wp->flags |= PANE_STYLECHANGED;
screen_write_fullredraw(&ictx->ctx);
}
}
/* Handle the OSC 11 sequence for setting and querying background colour. */
static void
@ -2596,11 +2600,13 @@ input_osc_11(struct input_ctx *ictx, const char *p)
log_debug("bad OSC 11: %s", p);
return;
}
if (ictx->palette != NULL) {
ictx->palette->bg = c;
if (wp != NULL)
wp->flags |= PANE_STYLECHANGED;
screen_write_fullredraw(&ictx->ctx);
}
}
/* Handle the OSC 111 sequence for resetting background colour. */
static void
@ -2610,11 +2616,13 @@ input_osc_111(struct input_ctx *ictx, const char *p)
if (*p != '\0')
return;
if (ictx->palette != NULL) {
ictx->palette->bg = 8;
if (wp != NULL)
wp->flags |= PANE_STYLECHANGED;
screen_write_fullredraw(&ictx->ctx);
}
}
/* Handle the OSC 52 sequence for setting the clipboard. */
static void