MCPcopy Create free account
hub / github.com/NetHack/NetHack / tty_ascgraphics_hilite_fixup

Function tty_ascgraphics_hilite_fixup

win/tty/termcap.c:493–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491static void tty_ascgraphics_hilite_fixup(void);
492
493static void
494tty_ascgraphics_hilite_fixup(void)
495{
496 int c;
497
498 for (c = 0; c < CLR_MAX / 2; c++)
499 if (c != CLR_BLACK) {
500 hilites[c | BRIGHT] = (char *) alloc(sizeof "\033[1;3%dm");
501 Sprintf(hilites[c | BRIGHT], "\033[1;3%dm", c);
502 if (c != CLR_GRAY) {
503 hilites[c] = (char *) alloc(sizeof "\033[0;3%dm");
504 Sprintf(hilites[c], "\033[0;3%dm", c);
505 }
506 }
507}
508#endif /* PC9800 */
509
510void

Callers 1

term_start_screenFunction · 0.85

Calls 1

allocFunction · 0.50

Tested by

no test coverage detected