1
Programming / Curses - Issue with init_color
« on: January 25, 2009, 06:52:33 PM »
Hi Everyone
Firstly, I'm new to the boards, so wanted to say hi. It's great to find a community like this.
I'm new to RL's (always wanted to make one) and have only recently started programming in C++ again (first time in 10+ years...coming from Java and IBM RPG).
I'm currently having an issue with the curse function init_color.
Per the header and all documentation I've found, this is supposed to let me manually set the RGB of a color for use.
For instance, I'm aiming for a grayish color, so am attempting to use:
init_color(COLOR_BLACK, 100, 100, 100);
However, the color's staying solid black whenever I use the new value in an init pair. Am I missing something, or am I just using this function completely wrong?
I read somewhere about possibly recompiling my curses library to support all colors, but I'm not quite sure what parms I should be passing/how I should go about doing this.
I'm currently coding in CodeBlocks using Ming32 on a Vista system. If anyone has any insight, I'd appreciate the help
Thanks!
Firstly, I'm new to the boards, so wanted to say hi. It's great to find a community like this.
I'm new to RL's (always wanted to make one) and have only recently started programming in C++ again (first time in 10+ years...coming from Java and IBM RPG).
I'm currently having an issue with the curse function init_color.
Per the header and all documentation I've found, this is supposed to let me manually set the RGB of a color for use.
For instance, I'm aiming for a grayish color, so am attempting to use:
init_color(COLOR_BLACK, 100, 100, 100);
However, the color's staying solid black whenever I use the new value in an init pair. Am I missing something, or am I just using this function completely wrong?
I read somewhere about possibly recompiling my curses library to support all colors, but I'm not quite sure what parms I should be passing/how I should go about doing this.
I'm currently coding in CodeBlocks using Ming32 on a Vista system. If anyone has any insight, I'd appreciate the help
Thanks!