General Terminal

GtIsMouse

Check whether the terminal accepts mouse input

Syntax

Signature
xBool GtIsMouse( void );

Arguments

No arguments.

Return value

T if the terminal accepts mouse input, otherwise F.

Description

Controls the driver’s mouse input setting. Use MPresent() to query mouse availability.

Example

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

#include <stdio.h>

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

   return 0;
}

See also