From 4a48baf50bdc2999bf1b6cebeb2f21a7b89549bc Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 21 Aug 2020 06:56:55 -0400 Subject: [PATCH] allglyphs: stylize legend --- src/demo/all.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/demo/all.c b/src/demo/all.c index 09ad481a4..a009e2ffb 100644 --- a/src/demo/all.c +++ b/src/demo/all.c @@ -40,9 +40,11 @@ allglyphs(struct notcurses* nc, struct ncplane* column, int legendy){ } ncplane_cursor_yx(column, NULL, &x); if(x >= dimx){ + ncplane_set_attr(std, NCSTYLE_BOLD | NCSTYLE_UNDERLINE | NCSTYLE_ITALIC); if(ncplane_printf_aligned(std, legendy, NCALIGN_CENTER, "0x%06x", wc) < 0){ return -1; } + ncplane_set_attr(std, NCSTYLE_NONE); DEMO_RENDER(nc); ncplane_set_fg_rgb(column, random() % 192 + 64,