From d46af6bd7ac7606bf99d63b2453b656a5defb892 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 20 Nov 2021 16:29:57 +0100 Subject: term: track cell color source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each cell now tracks it’s current color source: * default fg/bg * base16 fg/bg (maps to *both* the regular and bright colors) * base256 fg/bg * RGB Note that we don’t have enough bits to separate the regular from the bright colors. These _shouldn’t_ be the same, so we ought to be fine... --- sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sixel.c') diff --git a/sixel.c b/sixel.c index acb3f31b..e50fa511 100644 --- a/sixel.c +++ b/sixel.c @@ -70,7 +70,7 @@ sixel_init(struct terminal *term, int p1, int p2, int p3) term->sixel.default_bg = term->sixel.transparent_bg ? 0x00000000u - : 0xffu << 24 | (term->vt.attrs.have_bg + : 0xffu << 24 | (term->vt.attrs.bg_src != COLOR_DEFAULT ? term->vt.attrs.bg : term->colors.bg); -- cgit v1.3