From 21d28e7234bcd1d16627f7855c370b3c682249bb Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 13 Jul 2020 23:03:05 -0400 Subject: [PATCH] linux console: shim in single quad block glyphs #201 --- src/lib/linux.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/linux.c b/src/lib/linux.c index c202a9d6e..2f6de9228 100644 --- a/src/lib/linux.c +++ b/src/lib/linux.c @@ -78,6 +78,9 @@ shim_upper_left_quad(struct consolefontdesc* cfd, unsigned idx){ if(glyph == NULL){ return -1; } + for(unsigned r = 0 ; r < cfd->charheight / 2 ; ++r, ++glyph){ + *glyph = 0xf0; + } for(unsigned r = cfd->charheight / 2 ; r < cfd->charheight ; ++r, ++glyph){ *glyph = 0; } @@ -234,7 +237,10 @@ program_block_drawing_chars(const notcurses* nc, struct consolefontdesc* cfd, { .glyphfxn = shim_lower_half_block, .w = L'▄', .found = false, }, { .glyphfxn = shim_left_half_block, .w = L'▌', .found = false, }, { .glyphfxn = shim_right_half_block, .w = L'▐', .found = false, }, - // FIXME more + { .glyphfxn = shim_upper_left_quad, .w = L'▘', .found = false, }, + { .glyphfxn = shim_upper_right_quad, .w = L'▝', .found = false, }, + { .glyphfxn = shim_lower_left_quad, .w = L'▖', .found = false, }, + { .glyphfxn = shim_lower_right_quad, .w = L'▗', .found = false, }, }; // first, take a pass to see which glyphs we already have for(unsigned i = 0 ; i < cfd->charcount ; ++i){