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

Function condcolor

win/tty/wintty.c:4907–4918  ·  view source on GitHub ↗

* Return what color this condition should * be displayed in based on user settings. */

Source from the content-addressed store, hash-verified

4905 * be displayed in based on user settings.
4906 */
4907static int
4908condcolor(long bm, unsigned long *bmarray)
4909{
4910 int i;
4911
4912 if (bm && bmarray)
4913 for (i = 0; i < CLR_MAX; ++i) {
4914 if ((bm & bmarray[i]) != 0)
4915 return i;
4916 }
4917 return NO_COLOR;
4918}
4919
4920static int
4921condattr(long bm, unsigned long *bmarray)

Callers 1

render_statusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected