Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - addtheninth

Pages: [1]
Programming / Curses - Issue with init_color
« on: January 25, 2009, 06:52:33 PM »
Hi Everyone  ;D

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 ;)


Pages: [1]