Functions

IsColour

Determine if the current computer has color capability

Syntax

Signature
xBool IsColour( void );

Arguments

No arguments.

Return value

T if the driver reports color support, otherwise F.

Description

This spelling of `IsColor()` queries the same active text driver. It lets applications choose display attributes for a color-capable or monochrome terminal.

Example

iscolour.c
#include "xdev-wtui.h"

int main( void )
{
   DispOut( "Status", IsColour() ? "GR+/B" : NULL );

   Inkey( 0, NIL );

   return 0;
}