create a new foreground/background combination */
| 317 | |
| 318 | /* create a new foreground/background combination */ |
| 319 | int |
| 320 | curses_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 */ |
| 331 | void |
no outgoing calls
no test coverage detected