The routine gEnqColourInfo() returns in ndc and ndt information about the device's current colour and greyscale capabilities. In general, a device can only display a finite number of colours/greyscales. The number of colours/greyscales that can be defined (see gDefineRGB()) and selected (see gSetLineColour()) is returned in ndc. If ndc is set to zero, the device cannot display any colours.
ndt returns information about the colour/greyscale capabilities of the device: ndt= 0 for monochrome displays; = 1 for displays with fixed colours/greyscales which cannot be changed with gDefineRGB(); = 2 for displays with a palette but may not provide exactly the colour requested with gDefineRGB(); = 3 for dynamic colour/greyscale devices and = 4 for direct colour/greyscale devices. Negative values indicate greyscale rather than colour display.