Syntax
xBool IsColor( void );
Arguments
No arguments.
Return value
T if the driver reports color support, otherwise F.
Description
Ask the active text driver whether it reports color support. Use the result when choosing between color pairs and readable monochrome attributes for the same interface. `IsColour()` is the same query.
Example
#include "xdev-wtui.h"
int main( void )
{
DispOut( "Status", IsColor() ? "GR+/B" : NULL );
Inkey( 0, NIL );
return 0;
}