|
|
#include <curses.h>void getbegyx(WINDOW *win, int y, int x);
void getmaxyx(WINDOW *win, int y, int x);
void getparyx(WINDOW *win, int y, int x);
void getyx(WINDOW *win, int y, int x);
The getparyx(CURSES) macro, if the specified window is a subwindow, stores in y and x the coordinates of the window's origin relative to its parent window. Otherwise, -1 is stored in y and x.
The getbegyx(CURSES) macro stores the absolute screen coordinates of the specified window's origin in y and x.
The getmaxyx(CURSES) macro stores the number of rows of the specified window in y and stores the window's number of columns in x.