Syntax
xBool GtIsGraphic( void );
Arguments
No arguments.
Return value
T if the terminal has graphics capability, otherwise F.
Description
Use the driver’s graphics capability flag before choosing a UI that needs pixel drawing.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
printf( "Graphic state: %s\n", GtIsGraphic() ? "on" : "off" );
return 0;
}