fix up indexing for NCBLIT_8x1 plotter #1912

This commit is contained in:
nick black 2021-07-09 10:30:33 -04:00
parent 2441a31766
commit bfca06264a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 6 additions and 6 deletions

View File

@ -2,8 +2,8 @@ This document attempts to list user-visible changes and any major internal
rearrangements of Notcurses.
* 2.3.9 (not yet released)
* Fixed two major regressions in 2.3.8: menu highlighting is working once
more, as are pointer inputs (mice). Sorry about that!
* Fixed major regressions from 2.3.8: menu highlighting is working once
more, as are pointer inputs (mice) and the 8x1 plotter. Sorry about that!
* `notcurses_detected_terminal()` and `ncdirect_detected_terminal()` now
both return a heap-allocated string, which will contain the terminal
version if Notcurses was able to detect it. This result ought be free()d.

View File

@ -49,8 +49,8 @@ extern "C" {
#define NCANGLESTR L"🭒🭓🭔🭕🭖🭧🭢🭣🭤🭥🭦"
#define NCANGLESBL L"🭌🭍🭎🭏🭐🭑🬼🬽🬾🬿🭀"
#define NCANGLESTL L"🭝🭞🭟🭠🭡🭜🭗🭘🭙🭚🭛"
#define NCEIGHTHSB L"▁▂▃▄▅▆▇█"
#define NCEIGHTHST L"▔🮂🮃▀🮄🮅🮆█"
#define NCEIGHTHSB L" ▁▂▃▄▅▆▇█"
#define NCEIGHTHST L" ▔🮂🮃▀🮄🮅🮆█"
#define NCEIGHTHSL L"▏▎▍▌▋▊▉█"
#define NCEIGHTHSR L"▕🮇🮈▐🮉🮊🮋█"
#define NCHALFBLOCKS L" ▀▄█"

View File

@ -112,7 +112,7 @@ unicodedumper(struct ncplane* n, tinfo* ti, const char* indent){
ncplane_printf(n, "⎩%lc%lc⎭", NCEIGHTHSR[7], NCEIGHTHSL[7]);
ncplane_putchar(n, '\n');
ncplane_printf(n, "%s ▔🭶🭷🭸🭹🭺🭻▁ %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc 🭨🭪 %.30ls ⎛%ls⎞",
ncplane_printf(n, "%s ▔🭶🭷🭸🭹🭺🭻▁ %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc 🭨🭪 %.30ls ⎛%ls ",
indent,
NCANGLESBR[0], NCANGLESBL[0],
NCANGLESBR[1], NCANGLESBL[1],
@ -127,7 +127,7 @@ unicodedumper(struct ncplane* n, tinfo* ti, const char* indent){
NCANGLESBR[10], NCANGLESBL[10],
NCDIGITSSUBW, NCEIGHTHSB);
ncplane_putchar(n, '\n');
ncplane_printf(n, "%s ▏🭰🭱🭲🭳🭴🭵▕ %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc 🭪🭨 %.30ls ⎝%ls⎠",
ncplane_printf(n, "%s ▏🭰🭱🭲🭳🭴🭵▕ %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc %lc%lc 🭪🭨 %.30ls ⎝%ls ",
indent,
NCANGLESTR[0], NCANGLESTL[0],
NCANGLESTR[1], NCANGLESTL[1],