I am wrapping ncursesw for ruby. 
In ncurses.h it has declared the following variable:
extern int COLORS;

I would like to access COLORS from ruby (if possible).
I have tried extern 'int COLORS' but without luck.


shell> nm -a libncursesw.a
[snip]
00000000 B COLOR_PAIRS
00000004 B COLORS
         U curscr
         U cur_term
0000001c t default_bg
[snip]


I guess its accessable from the outside.. just how to do it?

Thanks in advance.

--
Simon Strandgaard