Skip to content

Commit

Permalink
ChafaSixelCanvas: Reintroduce sixel transparency
Browse files Browse the repository at this point in the history
We can clear the background in animation frames by setting the alpha
threshold now, like we do for Kitty.

Ref: #211 (GitHub).
Ref: #147 (GitHub).
  • Loading branch information
hpjansson committed Aug 23, 2024
1 parent 7e5f5bd commit b12ee21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chafa/internal/chafa-sixel-canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ chafa_sixel_canvas_build_ansi (ChafaSixelCanvas *sixel_canvas, ChafaTermInfo *te

chafa_passthrough_encoder_begin (&ptenc, passthrough, term_info, str);

*chafa_term_info_emit_begin_sixels (term_info, buf, 0, 0, 0) = '\0';
*chafa_term_info_emit_begin_sixels (term_info, buf, 0, 1, 0) = '\0';
chafa_passthrough_encoder_append (&ptenc, buf);

g_snprintf (buf,
Expand Down

0 comments on commit b12ee21

Please sign in to comment.