H13842 s 00070/00000/00000 d D 1.1 02/05/02 15:35:04 root 2 1 cC cF1 cK47704 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/05/02 15:35:04 root 1 0 c BitKeeper file /Mastodon/Core/Build/ncurses/Ada95/html/curs_getyx.3x.html cBor@egypt.pell.portland.or.us|ChangeSet|20020502223039|07086|e73225ae258b78f8 cHegypt.pell.portland.or.us cK19539 cPAda95/html/curs_getyx.3x.html cR43d319f7a27d354 cV4 cX0x821 cZ-07:00 e u U f e 0 f x 0x821 t T I 2
getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates
#include <curses.h> void getyx(WINDOW *win, int y, int x); void getparyx(WINDOW *win, int y, int x); void getbegyx(WINDOW *win, int y, int x); void getmaxyx(WINDOW *win, int y, int x);
The getyx macro places the current cursor position of the given window in the two integer variables y and x. If win is a subwindow, the getparyx macro places the beginning coordinates of the subwindow relative to the parent window into two integer variables y and x. Other- wise, -1 is placed into y and x. Like getyx, the getbegyx and getmaxyx macros store the current beginning coordinates and size of the specified window.
The return values of these macros are undefined (i.e., they should not be used as the right-hand side of assign- ment statements).
All of these interfaces are macros and that "&" is not necessary before the variables y and x.
These functions are described in the XSI Curses standard, Issue 4.
curses(3X)E 2 I 1 E 1