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

Function has_color

src/windows.c:1396–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1394#endif
1395
1396int
1397has_color(int color)
1398{
1399 return (iflags.use_color && windowprocs.name
1400 && (windowprocs.wincap & WC_COLOR) && windowprocs.has_color[color]
1401#ifdef TTY_GRAPHICS
1402#if defined(TERMLIB) && !defined(NO_TERMS)
1403 && (hilites[color] != 0)
1404#endif
1405#endif
1406 );
1407}
1408
1409int
1410glyph2ttychar(int glyph)

Callers 1

reset_glyphmapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected