From 4eeb61a6910293a72a25797fd3e8cb78c52bc962 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 25 Jun 2021 00:35:15 -0400 Subject: [PATCH] notcurses-info: colorize symbols for legacy computing --- src/info/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/info/main.c b/src/info/main.c index 6daa8b8c5..648695e50 100644 --- a/src/info/main.c +++ b/src/info/main.c @@ -75,6 +75,12 @@ unicodedumper(const struct notcurses* nc, struct ncplane* n, tinfo* ti, const ch NCEIGHTHSBOTTOM); ncplane_printf(n, " ⎝%ls⎠ ▏🭰🭱🭲🭳🭴🭵▕ 🭒 🭓 🭔 🭕 🭖 🭧 🭜 🭟 🭠 🭡 🭞 🭝 🭧🭜 🭕🭠 🭖🭡 🭔🭟 🭓🭞 🭒🭝 🭪🭨 \n", NCEIGHTSTOP); + int y, x; + ncplane_cursor_yx(n, &y, &x); + ncplane_cursor_move_yx(n, y - 2, x + 23); + uint32_t ul = CHANNEL_RGB_INITIALIZER(0x80, 0x80, 0x80); + uint32_t lr = CHANNEL_RGB_INITIALIZER(0x30, 0x30, 0x30); + ncplane_stain(n, y, 66, ul, lr, ul, lr); } return 0; }