tinfo_debug_caps: prettify outputs

This commit is contained in:
nick black 2021-06-06 12:32:55 -04:00
parent 9cbc1c35f3
commit 4bf14935f5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -43,10 +43,11 @@ tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols,
capbool(ti->sextants), capbool(ti->braille), capbool(ti->sextants), capbool(ti->braille),
capbool(images), capbool(videos)); capbool(images), capbool(videos));
if(ti->utf8){ if(ti->utf8){
fprintf(debugfp, "%sQuads: %ls\n", indent, get_blitter_egcs(NCBLIT_2x2)); fprintf(debugfp, "%s Quads {%ls}\n", indent, get_blitter_egcs(NCBLIT_2x2));
fprintf(debugfp, "%sSextants: %ls\n", indent, get_blitter_egcs(NCBLIT_3x2)); fprintf(debugfp, "%sSextants ⎧%.120ls⎫\n", indent, get_blitter_egcs(NCBLIT_3x2));
fprintf(debugfp, "%sBraille: %ls\n", indent, get_blitter_egcs(NCBLIT_BRAILLE)); fprintf(debugfp, "%s ⎩%ls⎭\n", indent, get_blitter_egcs(NCBLIT_3x2) + 32);
fprintf(debugfp, "%sBottom eighths: %ls\n", indent, get_blitter_egcs(NCBLIT_8x1)); fprintf(debugfp, "%s Braille {%ls}\n", indent, get_blitter_egcs(NCBLIT_BRAILLE));
fprintf(debugfp, "%sLower ⅛s {%ls}\n", indent, get_blitter_egcs(NCBLIT_8x1));
} }
if(ti->bg_collides_default){ if(ti->bg_collides_default){
fprintf(debugfp, "%sbackground of 0x%06lx is considered transparent\n", indent, ti->bg_collides_default & 0xfffffful); fprintf(debugfp, "%sbackground of 0x%06lx is considered transparent\n", indent, ti->bg_collides_default & 0xfffffful);