General Terminal

GtIsGraphic

Check whether the terminal has graphics capability

Syntax

Signature
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

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

#include <stdio.h>

int main( void )
{
   printf( "Graphic state: %s\n", GtIsGraphic() ? "on" : "off" );

   return 0;
}

See also