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

Function curses_init_pair

win/curses/cursinit.c:319–328  ·  view source on GitHub ↗

create a new foreground/background combination */

Source from the content-addressed store, hash-verified

317
318/* create a new foreground/background combination */
319int
320curses_init_pair(int fg, int bg)
321{
322 if (pairs_used < COLOR_PAIRS - 1) {
323 pairs_used++;
324 init_pair(pairs_used, fg, bg);
325 return pairs_used;
326 }
327 return 0;
328}
329
330/* Initialize curses colors to colors used by NetHack */
331void

Callers 1

curses_parse_wid_colorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected