allglyphs: stylize legend

pull/937/head
nick black 4 years ago
parent 375037c750
commit 4a48baf50b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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,

Loading…
Cancel
Save