From 414b2694bace7273219a403f707a343efadd65e8 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 24 Nov 2019 18:37:41 -0500 Subject: [PATCH] boxdemo: inject some color #9 --- src/bin/boxdemo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/boxdemo.c b/src/bin/boxdemo.c index e9533e9c2..55f3e871e 100644 --- a/src/bin/boxdemo.c +++ b/src/bin/boxdemo.c @@ -25,13 +25,18 @@ int box_demo(struct notcurses* nc){ cell_load(n, &lr, "╯"); cell_load(n, &vl, "│"); cell_load(n, &hl, "─"); + cell_set_fg(&hl, 107, 40, 107); + cell_set_bg(&vl, 107, 40, 107); if(ncplane_box(n, &ul, &ur, &ll, &lr, &hl, &vl, ymax, xmax)){ return -1; } + cell_set_bg(&hl, 40, 107, 40); ncplane_cursor_move_yx(n, 1, 1); if(ncplane_hline(n, &hl, xmax - 2) != xmax - 2){ return -1; } + cell_set_fg(&hl, 40, 107, 40); + cell_set_bg(&hl, 0, 0, 0); ncplane_cursor_move_yx(n, ymax - 2, 1); if(ncplane_hline(n, &hl, xmax - 2) != xmax - 2){ return -1;