From 725ca9a0407acaa839e62f1ade906bb78a5e3350 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 25 Apr 2021 05:18:17 -0400 Subject: [PATCH] textplay: make the textplane transparent by default #1425 --- src/poc/textplay.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/poc/textplay.c b/src/poc/textplay.c index 08638b830..e1650a857 100644 --- a/src/poc/textplay.c +++ b/src/poc/textplay.c @@ -119,7 +119,14 @@ textplane(struct notcurses* nc){ .cols = dimx - MARGIN * 4, .name = "text", }; - return ncplane_create(stdn, &nopts); + struct ncplane* n = ncplane_create(stdn, &nopts); + uint64_t channels = 0; + channels_set_fg_alpha(&channels, CELL_ALPHA_TRANSPARENT); + channels_set_bg_alpha(&channels, CELL_ALPHA_TRANSPARENT); + if(n){ + ncplane_set_base(n, "", 0, channels); + } + return n; } static void