boxdemo: default background cell explicitly #211

pull/217/head
nick black 5 years ago
parent 4b953e33f2
commit 1554685165
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -26,6 +26,10 @@ int box_demo(struct notcurses* nc){
const int targx = 7;
const int targy = 7;
int ytargbase = (ylen - targy) / 2;
cell c = CELL_SIMPLE_INITIALIZER(' ');
cell_set_bg_default(&c);
ncplane_set_default(n, &c);
cell_release(n, &c);
ncplane_set_fg_rgb(n, 180, 40, 180);
ncplane_set_bg_default(n);
if(ncplane_putstr_aligned(n, ytargbase++, NCALIGN_CENTER, "┏━━┳━━┓") < 0){

Loading…
Cancel
Save