diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-21 08:58:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-21 08:58:09 +0000 |
| commit | 29d855d7c6930bd6c42a0d9f01f466e4602834d8 (patch) | |
| tree | 18b4d98ec9f946a65bbce72f24bab7a9ba71f4da /osc.c | |
| parent | osc: add TODO (diff) | |
term: prepare for configurable colors; add color variables to terminal
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
