From e530a6d27a3838f409295c4234e7f8679b475bd4 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 19 Jun 2021 20:28:25 -0400 Subject: [PATCH] tighten up notcurses-info output --- src/lib/debug.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/lib/debug.c b/src/lib/debug.c index 1e5e0dcda..f115f3eb0 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -79,31 +79,31 @@ tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols, capbool(ti->caps.sextants), capbool(ti->caps.braille), capbool(images), capbool(videos)); if(ti->caps.utf8){ - fprintf(debugfp, "%s{%ls} {%ls} ⎧%.122ls⎫ ⎧%.6ls%.3ls⎫ ⎧%.6ls%.3ls⎫ ⎧█ ⎫ 🯰🯱\n", indent, + fprintf(debugfp, "%s{%ls} {%ls} ⎧%.122ls⎫ ⎧█ ⎫ 🯰🯱\n", indent, get_blitter_egcs(NCBLIT_2x1), get_blitter_egcs(NCBLIT_2x2), - get_blitter_egcs(NCBLIT_3x2), + get_blitter_egcs(NCBLIT_3x2)); + fprintf(debugfp, "%s ⎩%ls⎭ ⎪🮋▏⎪ 🯲🯳\n", indent, + get_blitter_egcs(NCBLIT_3x2) + 32); + fprintf(debugfp, "%s⎧%.6ls%.3ls⎫ ⎧%.6ls%.3ls⎫ ⎧%.6ls%.3ls⎫ ⎧%.6ls%.3ls⎫ ⎪🮊▎⎪ 🯴🯵\n", indent, NCBOXLIGHTW, NCBOXLIGHTW + 4, - NCBOXHEAVYW, NCBOXHEAVYW + 4); - fprintf(debugfp, "%s ⎩%ls⎭ ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭ ⎪🮋▏⎪ 🯲🯳\n", indent, - get_blitter_egcs(NCBLIT_3x2) + 32, - NCBOXLIGHTW + 2, NCBOXLIGHTW + 5, - NCBOXHEAVYW + 2, NCBOXHEAVYW + 5); - fprintf(debugfp, "%s ⎧%.6ls%.3ls⎫ ⎧%.6ls%.3ls⎫ ⎪🮊▎⎪ 🯴🯵\n", indent, + NCBOXHEAVYW, NCBOXHEAVYW + 4, NCBOXROUNDW, NCBOXROUNDW + 4, NCBOXDOUBLEW, NCBOXDOUBLEW + 4); - fprintf(debugfp, "%s ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭ ⎪🮉▍⎪ 🯶🯷\n", indent, + fprintf(debugfp, "%s⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭ ⎪🮉▍⎪ 🯶🯷\n", indent, + NCBOXLIGHTW + 2, NCBOXLIGHTW + 5, + NCBOXHEAVYW + 2, NCBOXHEAVYW + 5, NCBOXROUNDW + 2, NCBOXROUNDW + 5, NCBOXDOUBLEW + 2, NCBOXDOUBLEW + 5); - fprintf(debugfp, "%s⎡%.192ls⎤ ⎪🮉▍⎪ 🯸🯹\n", indent, + fprintf(debugfp, "%s⎡%.192ls⎤ ⎪🮉▍⎪ 🯸🯹\n", indent, get_blitter_egcs(NCBLIT_BRAILLE)); - fprintf(debugfp, "%s⎢%.192ls⎥ ⎨▐▌⎬\n", indent, + fprintf(debugfp, "%s⎢%.192ls⎥ ⎨▐▌⎬\n", indent, get_blitter_egcs(NCBLIT_BRAILLE) + 64); - fprintf(debugfp, "%s⎢%.192ls⎥ ⎪🮈▋⎪\n", indent, + fprintf(debugfp, "%s⎢%.192ls⎥ ⎪🮈▋⎪\n", indent, get_blitter_egcs(NCBLIT_BRAILLE) + 128); - fprintf(debugfp, "%s⎣%.192ls⎦ ⎪🮇▊⎪\n", indent, + fprintf(debugfp, "%s⎣%.192ls⎦ ⎪🮇▊⎪\n", indent, get_blitter_egcs(NCBLIT_BRAILLE) + 192); - fprintf(debugfp, "%s ⎛%ls⎞ ▔🭶🭷🭸🭹🭺🭻▁ 🭁 🭂 🭃 🭄 🭅 🭆 🭑 🭐 🭏 🭎 🭍 🭌 🭆🭑 🭄🭏 🭅🭐 🭃🭎 🭂🭍 🭁🭌 ⎪▕▉⎪ 🭨🭪\n", indent, get_blitter_egcs(NCBLIT_8x1)); - fprintf(debugfp, "%s ⎝%s⎠ ▏🭰🭱🭲🭳🭴🭵▕ 🭒 🭓 🭔 🭕 🭖 🭧 🭜 🭟 🭠 🭡 🭞 🭝 🭧🭜 🭕🭠 🭖🭡 🭔🭟 🭓🭞 🭒🭝 ⎩ █⎭ 🭪🭨\n", indent, "█🮆🮅🮄▀🮃🮂▔ "); + fprintf(debugfp, "%s ⎛%ls⎞ ▔🭶🭷🭸🭹🭺🭻▁ 🭁 🭂 🭃 🭄 🭅 🭆 🭑 🭐 🭏 🭎 🭍 🭌 🭆🭑 🭄🭏 🭅🭐 🭃🭎 🭂🭍 🭁🭌 ⎪▕▉⎪ 🭨🭪\n", indent, get_blitter_egcs(NCBLIT_8x1)); + fprintf(debugfp, "%s ⎝%s⎠ ▏🭰🭱🭲🭳🭴🭵▕ 🭒 🭓 🭔 🭕 🭖 🭧 🭜 🭟 🭠 🭡 🭞 🭝 🭧🭜 🭕🭠 🭖🭡 🭔🭟 🭓🭞 🭒🭝 ⎩ █⎭ 🭪🭨\n", indent, "█🮆🮅🮄▀🮃🮂▔ "); } fprintf(debugfp, "%sbackground of 0x%06lx is %sconsidered transparent\n", indent, ti->bg_collides_default & 0xfffffful, (ti->bg_collides_default & 0x01000000) ? "" : "not ");