getyx - get cursor coordinates
#include <curses.h> void getyx(WINDOW *win, int y, int x);
Refer to getbegyx().