aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-21 09:34:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-21 09:34:45 +0000
commit07b3e7606205c79c74a39b3ad6e2c91c60699ebc (patch)
treeb2636e6e5ee897a1e6821141577475f9f0f6512d /osc.c
parentosc: add TODO (diff)
parentcsi: pick 16 first 256-colors directly from the term struct (diff)
Merge branch 'config-color'
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osc.c b/osc.c
index bd693a8d..02f393b6 100644
--- a/osc.c
+++ b/osc.c
@@ -18,7 +18,7 @@ osc_query(struct terminal *term, unsigned param)
switch (param) {
case 10:
case 11: {
- uint32_t color = param == 10 ? term->foreground : term->background;
+ uint32_t color = param == 10 ? term->colors.fg : term->colors.bg;
uint8_t r = (color >> 16) & 0xff;
uint8_t g = (color >> 8) & 0xff;
uint8_t b = (color >> 0) & 0xff;