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

Function curses_change_color

win/curses/cursmain.c:1285–1297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283
1284#ifdef CHANGE_COLOR
1285static void
1286curses_change_color(int color, long rgb, int reverse UNUSED)
1287{
1288 short r, g, b;
1289
1290 if (!can_change_color())
1291 return;
1292
1293 r = (rgb >> 16) & 0xFF;
1294 g = (rgb >> 8) & 0xFF;
1295 b = rgb & 0xFF;
1296 init_color(color % 16, r * 4, g * 4, b * 4);
1297}
1298
1299static char *
1300curses_get_color_string(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected