mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
term: prepare for configurable colors; add color variables to terminal
This commit is contained in:
parent
b18478f9b6
commit
29d855d7c6
5 changed files with 19 additions and 10 deletions
2
osc.c
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue