Syntax
void GtGetMouseXY( int *x, int *y );
Arguments
x points to an integer that receives the horizontal coordinate relative to the terminal window.
y points to an integer that receives the vertical coordinate relative to the terminal window.
Return value
No return value.
Description
Use MCol() and MRow() when you need the position in text cells.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
int x, y;
puts( "Move the mouse over the terminal." );
Inkey( 3, NIL );
GtGetMouseXY( &x, &y );
printf( "x=%d, y=%d\n", x, y );
return 0;
}