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

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

	/* Direct access */
	(*a) = Term->scr->a[y][x];
	(*c) = Term->scr->c[y][x];

	/* Success */
	return (0);
}
/**
 * At a given location, determine the "current" attr and char
 * Note that this refers to what will be on the window after the
 * next call to "Term_fresh()".  It may or may not already be there.
 */
At a given location, determine the "current" attr and char
Note that this refers to what will be on the window after the
next call to "Term_fresh()".  It may or may not already be there.
At a given location determine the " current " attr and char Note that this refers to what will be on the window after the next call to " Term_fresh () " . It may or may not already be there .
errr Term_what(int x, int y, int *a, wchar_t *c)
{
	int w = Term->wid;
	int h = Term->hgt;
	if ((x < 0) || (x >= w)) return (-1);
	if ((y < 0) || (y >= h)) return (-1);
	(*a) = Term->scr->a[y][x];
	(*c) = Term->scr->c[y][x];
	return (0);
}
errr Term_what ( int x , int y , int * a , wchar_t * c ) { int w = Term -> wid ; int h = Term -> hgt ; if ( ( x < 0 ) || ( x >= w ) ) return ( -1 ) ; if ( ( y < 0 ) || ( y >= h ) ) return ( -1 ) ; ( * a ) = Term -> scr -> a [ y ] [ x ] ; ( * c ) = Term -> scr -> c [ y ] [ x ] ; return ( 0 ) ; }
At a given location, determine the "current" attr and char
 Note that this refers to what will be on the window after the
 next call to "Term_fresh()".
At a given location determine the " current " attr and char Note that this refers to what will be on the window after the next call to " Term_fresh () " .
/* Verify location */ /* Direct access */ /* Success */