From 29d855d7c6930bd6c42a0d9f01f466e4602834d8 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 21 Jul 2019 10:58:09 +0200 Subject: term: prepare for configurable colors; add color variables to terminal --- osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osc.c') 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; -- cgit v1.3