src/ui-term.c
errr Term_gotoxy(int x, int y)
{
	int w = Term->wid;
	int h = Term->hgt;

	/* Verify */
	if ((x < 0) || (x >= w)) return (-1);
	if ((y < 0) || (y >= h)) return (-1);

	/* Remember the cursor */
	Term->scr->cx = x;
	Term->scr->cy = y;

	/* The cursor is not useless */
	Term->scr->cu = 0;

	/* Success */
	return (0);
}
/**
 * Place the cursor at a given location
 *
 * Note -- "illegal" requests do not move the cursor.
 */
Place the cursor at a given location
Note -- "illegal" requests do not move the cursor.
Place the cursor at a given location Note -- " illegal " requests do not move the cursor .
errr Term_gotoxy(int x, int y)
{
	int w = Term->wid;
	int h = Term->hgt;
	if ((x < 0) || (x >= w)) return (-1);
	if ((y < 0) || (y >= h)) return (-1);
	Term->scr->cx = x;
	Term->scr->cy = y;
	Term->scr->cu = 0;
	return (0);
}
errr Term_gotoxy ( int x , int y ) { int w = Term -> wid ; int h = Term -> hgt ; if ( ( x < 0 ) || ( x >= w ) ) return ( -1 ) ; if ( ( y < 0 ) || ( y >= h ) ) return ( -1 ) ; Term -> scr -> cx = x ; Term -> scr -> cy = y ; Term -> scr -> cu = 0 ; return ( 0 ) ; }
Place the cursor at a given location
 Note -- "illegal" requests do not move the cursor.
Place the cursor at a given location Note -- " illegal " requests do not move the cursor .
/* Verify */ /* Remember the cursor */ /* The cursor is not useless */ /* Success */