2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>getyx</STRONG>, <STRONG>getparyx</STRONG>, <STRONG>getbegyx</STRONG>, <STRONG>getmaxyx</STRONG> - get <STRONG>curses</STRONG> cursor
10 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
12 <STRONG>void</STRONG> <STRONG>getyx(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
13 <STRONG>void</STRONG> <STRONG>getparyx(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
14 <STRONG>void</STRONG> <STRONG>getbegyx(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
15 <STRONG>void</STRONG> <STRONG>getmaxyx(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
19 <H2>DESCRIPTION</H2><PRE>
20 The <STRONG>getyx</STRONG> macro places the current cursor position of the
21 given window in the two integer variables <EM>y</EM> and <EM>x</EM>.
23 If <EM>win</EM> is a subwindow, the <STRONG>getparyx</STRONG> macro places the
24 beginning coordinates of the subwindow relative to the
25 parent window into two integer variables <EM>y</EM> and <EM>x</EM>. Other-
26 wise, <STRONG>-1</STRONG> is placed into <EM>y</EM> and <EM>x</EM>.
28 Like <STRONG>getyx</STRONG>, the <STRONG>getbegyx</STRONG> and <STRONG>getmaxyx</STRONG> macros store the
29 current beginning coordinates and size of the specified
34 <H2>RETURN VALUE</H2><PRE>
35 The return values of these macros are undefined (<EM>i</EM>.<EM>e</EM>.,
36 they should not be used as the right-hand side of assign-
42 All of these interfaces are macros and that "<STRONG>&</STRONG>" is not
43 necessary before the variables <EM>y</EM> and <EM>x</EM>.
47 <H2>PORTABILITY</H2><PRE>
48 These functions are described in the XSI Curses standard,
53 <H2>SEE ALSO</H2><PRE>
54 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>