|
|
@ -26,6 +26,10 @@ int box_demo(struct notcurses* nc){
|
|
|
|
const int targx = 7;
|
|
|
|
const int targx = 7;
|
|
|
|
const int targy = 7;
|
|
|
|
const int targy = 7;
|
|
|
|
int ytargbase = (ylen - targy) / 2;
|
|
|
|
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_fg_rgb(n, 180, 40, 180);
|
|
|
|
ncplane_set_bg_default(n);
|
|
|
|
ncplane_set_bg_default(n);
|
|
|
|
if(ncplane_putstr_aligned(n, ytargbase++, NCALIGN_CENTER, "┏━━┳━━┓") < 0){
|
|
|
|
if(ncplane_putstr_aligned(n, ytargbase++, NCALIGN_CENTER, "┏━━┳━━┓") < 0){
|
|
|
|