From 14ee26ba73d384e402da814e770e751981bb62fc Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 1 Oct 2006 08:53:41 +0000 Subject: [PATCH] * Set default background to transparent in the ANSI and UTF-8 importers. --- cucul/import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cucul/import.c b/cucul/import.c index 0f1598e..c063ca2 100644 --- a/cucul/import.c +++ b/cucul/import.c @@ -465,7 +465,7 @@ static void ansi_parse_grcm(cucul_canvas_t *cv, struct ansi_grcm *g, { case 0: /* default rendition */ g->fg = CUCUL_COLOR_DEFAULT; - g->bg = CUCUL_COLOR_DEFAULT; + g->bg = CUCUL_COLOR_TRANSPARENT; g->bold = g->negative = g->concealed = 0; break; case 1: /* bold or increased intensity */ @@ -491,7 +491,7 @@ static void ansi_parse_grcm(cucul_canvas_t *cv, struct ansi_grcm *g, g->fg = CUCUL_COLOR_DEFAULT; break; case 49: /* default background colour (implementation-defined) */ - g->bg = CUCUL_COLOR_DEFAULT; + g->bg = CUCUL_COLOR_TRANSPARENT; break; default: fprintf(stderr, "unknown sgr %i\n", argv[j]);