getyx(3cur)
NAME
getyx − get cursor position
SYNTAX
getyx(win, y, x)
WINDOW ∗win;
int y, x;
DESCRIPTION
The cursor coordinates of the window are placed in the two integer variables y and x. This routine is implemented as a macro, so no & is necessary before the variables.