create a new color */
| 302 | |
| 303 | /* create a new color */ |
| 304 | int |
| 305 | curses_init_rgb(int r, int g, int b) |
| 306 | { |
| 307 | if (!can_change_color()) |
| 308 | return 0; |
| 309 | |
| 310 | if (colors_used < COLORS - 1) { |
| 311 | colors_used++; |
| 312 | init_color(colors_used, r*4, g*4, b*4); |
| 313 | return colors_used; |
| 314 | } |
| 315 | return 0; |
| 316 | } |
| 317 | |
| 318 | /* create a new foreground/background combination */ |
| 319 | int |
no outgoing calls
no test coverage detected