August 11, 2014
Issue with colors in ncurses

Acco to the ncurses documentation, the number of color_pairs one can create
using `init_color` is `COLOR_PAIRS` - 1. This comes to 32767 on my system.

However, i notice that after 255, the colors i create do not show up
correctly, so the limit seems to be 255. This usually does not affect an
application, unless it is a color demo, or you wish to show each color
on the same screen/pad. Or you wish to let the user cycle through all
colors, and select one.

The only way of making this possible, is to once again start using
color_pairs from one, but that means that existing items on the screen
that use that color pair will immediately change their color.

Maybe there is a bug somewhere in the code, or in my terminal setting (I
have tried both xterm-256color and screen-256color. The ruby program
that outputs colors on the screen (non-curses) does not have this issue
(256colors.rb).