#include <FL/Fl.H>extern "C" { unsigned fl_get_color( Fl_Color i ){ return Fl::get_color( i ); }}
#include <AppKit/AppKit.h>void NSGetTextSelectionColor( int* red, int* green, int* blue ){ float r, g, b; NSColor* c = [[NSColor selectedTextBackgroundColor] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; [c getRed:&r green:&g blue:&b alpha:NULL]; *red = (int)(255 * r); *green = (int)(255 * g); *blue = (int)(255 * b);}