Usually you need to write like below.
start_color();
init_pair(999, COLOR_WHITE, COLOR_BLACK);
attron(COLOR_PAIR(999));
addstr("neko");
In my case, there are plenty of RGB colors to display. I don't like to init_pair each times because it can be a lot of combinations.
Is there any way to do like below?
set_color(R, G, B); // set without init_pair
addstr("neko");
From my current understanding, I need to sacrifice 1 palette such as COLOR_CYAN to overwrite by init_color...? I don't like to do so...
init_color(COLOR_RED, 128, 128, 128);
attron(COLOR_PAIR(COLOR_RED));
addstr("neko");
init_color(COLOR_RED, 12, 12, 12);
attron(COLOR_PAIR(COLOR_RED));
addstr("neko");
init_color(COLOR_RED, 1, 1, 1);
attron(COLOR_PAIR(COLOR_RED));
addstr("neko");