From 0f5c76d070746fae1e7f50603158beb0e7eb1471 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 30 Jan 2021 12:04:44 -0500 Subject: [PATCH] intro: use actual inverted blocks --- src/demo/intro.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/demo/intro.c b/src/demo/intro.c index c83be611f..4cea01a2e 100644 --- a/src/demo/intro.c +++ b/src/demo/intro.c @@ -124,11 +124,16 @@ int intro(struct notcurses* nc){ } } ncplane_off_styles(ncp, NCSTYLE_BOLD); - const wchar_t wstr[] = L"▏▁ ▂ ▃ ▄ ▅ ▆ ▇ █ █ ▇ ▆ ▅ ▄ ▃ ▂ ▁▕"; - if(ncplane_putwstr_aligned(ncp, rows / 2 - 6, NCALIGN_CENTER, wstr) < 0){ + const wchar_t nwstr[] = L"▏▁ ▂ ▃ ▄ ▅ ▆ ▇ █ █ ▇ ▆ ▅ ▄ ▃ ▂ ▁▕"; + if(ncplane_putwstr_aligned(ncp, rows / 2 - 6, NCALIGN_CENTER, nwstr) < 0){ return -1; } - const wchar_t iwstr[] = L"▏█ ▇ ▆ ▅ ▄ ▃ ▂ ▁ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █▕"; + const wchar_t* iwstr; + if(notcurses_cansextant(nc)){ + iwstr = L"▏▔ 🮂 🮃 ▀ 🮄 🮅 🮆 █ █ 🮆 🮅 🮄 ▀ 🮃 🮂 ▔▕"; + }else{ + iwstr = L"▏█ ▇ ▆ ▅ ▄ ▃ ▂ ▁ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █▕"; + } if(ncplane_putwstr_aligned(ncp, rows / 2 + 1, NCALIGN_CENTER, iwstr) < 0){ return -1; }