Bladeren bron

* Set default background to transparent in the ANSI and UTF-8 importers.

tags/v0.99.beta14
Sam Hocevar sam 18 jaren geleden
bovenliggende
commit
14ee26ba73
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      cucul/import.c

+ 2
- 2
cucul/import.c Bestand weergeven

@@ -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]);


Laden…
Annuleren
Opslaan