mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
tighten up term_debug_caps() a bit #1793
This commit is contained in:
parent
2ed1ad466f
commit
cba21d24fa
@ -19,7 +19,8 @@ extern "C" {
|
||||
#define NCBOXASCIIW L"/\\\\/-|"
|
||||
|
||||
// symbols for legacy computing
|
||||
#define NCEIGHTSUP "█🮆🮅🮄▀🮃🮂▔ "
|
||||
#define NCEIGHTHSBOTTOM L" ▁▂▃▄▅▆▇█"
|
||||
#define NCEIGHTSTOP L"█🮆🮅🮄▀🮃🮂▔ "
|
||||
#define NCHALFBLOCKS L" ▀▄█"
|
||||
#define NCQUADBLOCKS L" ▘▝▀▖▌▞▛▗▚▐▜▄▙▟█"
|
||||
#define NCSEXBLOCKS L" 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓▌🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧▐🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻█"
|
||||
@ -40,7 +41,6 @@ extern "C" {
|
||||
"\u28c4\u28c5\u28cc\u28cd\u28c6\u28c7\u28ce\u28cf\u28d4\u28d5\u28dc\u28dd\u28d6\u28d7\u28de\u28df"\
|
||||
"\u28e0\u28e1\u28e8\u28e9\u28e2\u28e3\u28ea\u28eb\u28f0\u28f1\u28f8\u28f9\u28f2\u28f3\u28fa\u28fb"\
|
||||
"\u28e4\u28e5\u28ec\u28ed\u28e6\u28e7\u28ee\u28ef\u28f4\u28f5\u28fc\u28fd\u28f6\u28f7\u28fe\u28ff"
|
||||
#define NCEIGHTHSBOTTOM L" ▁▂▃▄▅▆▇█"
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
@ -44,8 +44,8 @@ unicodedumper(FILE* fp, tinfo* ti){
|
||||
fprintf(fp, " ⎣%.192ls⎦ ⎪▕▉⎪\n", NCBRAILLEEGCS + 192);
|
||||
fprintf(fp, " ⎛%ls⎞ ▔🭶🭷🭸🭹🭺🭻▁ 🭁 🭂 🭃 🭄 🭅 🭆 🭑 🭐 🭏 🭎 🭍 🭌 🭆🭑 🭄🭏 🭅🭐 🭃🭎 🭂🭍 🭁🭌 🭨🭪 ⎩ █⎭\n",
|
||||
NCEIGHTHSBOTTOM);
|
||||
fprintf(fp, " ⎝%s⎠ ▏🭰🭱🭲🭳🭴🭵▕ 🭒 🭓 🭔 🭕 🭖 🭧 🭜 🭟 🭠 🭡 🭞 🭝 🭧🭜 🭕🭠 🭖🭡 🭔🭟 🭓🭞 🭒🭝 🭪🭨 \n",
|
||||
NCEIGHTSUP);
|
||||
fprintf(fp, " ⎝%ls⎠ ▏🭰🭱🭲🭳🭴🭵▕ 🭒 🭓 🭔 🭕 🭖 🭧 🭜 🭟 🭠 🭡 🭞 🭝 🭧🭜 🭕🭠 🭖🭡 🭔🭟 🭓🭞 🭒🭝 🭪🭨 \n",
|
||||
NCEIGHTSTOP);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ static void
|
||||
tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols,
|
||||
unsigned images, unsigned videos){
|
||||
const char indent[] = " ";
|
||||
fprintf(debugfp, "%scolors: %u rgb%lc ccc%lc af%lc ab%lc appsync%lc u7%lc cup%lc vpa%lc hpa%lc\n",
|
||||
indent, ti->caps.colors,
|
||||
fprintf(debugfp, "%srgb%lc ccc%lc af%lc ab%lc appsync%lc u7%lc cup%lc vpa%lc hpa%lc sgr%lc sgr0%lc op%lc fgop%lc bgop%lc\n",
|
||||
indent,
|
||||
capbool(ti, ti->caps.rgb),
|
||||
capbool(ti, ti->caps.can_change_colors),
|
||||
capyn(ti, get_escape(ti, ESCAPE_SETAF)),
|
||||
@ -65,13 +65,12 @@ tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols,
|
||||
capyn(ti, get_escape(ti, ESCAPE_DSRCPR)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_CUP)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_VPA)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_HPA)));
|
||||
fprintf(debugfp, "%ssgr%lc sgr0%lc op%lc fgop%lc bgop%lc\n",
|
||||
indent, capyn(ti, get_escape(ti, ESCAPE_SGR)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_SGR0)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_OP)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_FGOP)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_BGOP)));
|
||||
capyn(ti, get_escape(ti, ESCAPE_HPA)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_SGR)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_SGR0)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_OP)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_FGOP)),
|
||||
capyn(ti, get_escape(ti, ESCAPE_BGOP)));
|
||||
fprintf(debugfp, "%srows: %u cols: %u rpx: %u cpx: %u (%dx%d)\n",
|
||||
indent, rows, cols, ti->cellpixy, ti->cellpixx, rows * ti->cellpixy, cols * ti->cellpixx);
|
||||
if(!ti->pixel_draw){
|
||||
@ -85,7 +84,7 @@ tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols,
|
||||
fprintf(debugfp, "%srgba pixel graphics supported\n", indent);
|
||||
}
|
||||
tinfo_debug_styles(ti, debugfp, indent);
|
||||
fprintf(debugfp, "%sutf8: %c quad: %c sex: %c braille: %c images: %c videos: %c\n",
|
||||
fprintf(debugfp, "%sutf8%lc quad%lc sex%lc braille%lc images%lc videos%lc\n",
|
||||
indent,
|
||||
capbool(ti, ti->caps.utf8),
|
||||
capbool(ti, ti->caps.quadrants),
|
||||
|
Loading…
x
Reference in New Issue
Block a user