4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>getyx</B>, <B>getparyx</B>, <B>getbegyx</B>, <B>getmaxyx</B> - get <B>curses</B> cursor
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><curses.h></B>
16 <B>void</B> <B>getyx(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x);</B>
17 <B>void</B> <B>getparyx(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x);</B>
18 <B>void</B> <B>getbegyx(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x);</B>
19 <B>void</B> <B>getmaxyx(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x);</B>
23 <H2>DESCRIPTION</H2><PRE>
24 The <B>getyx</B> macro places the current cursor position of the
25 given window in the two integer variables <I>y</I> and <I>x</I>.
27 If <I>win</I> is a subwindow, the <B>getparyx</B> macro places the
28 beginning coordinates of the subwindow relative to the
29 parent window into two integer variables <I>y</I> and <I>x</I>. Other-
30 wise, <B>-1</B> is placed into <I>y</I> and <I>x</I>.
32 Like <B>getyx</B>, the <B>getbegyx</B> and <B>getmaxyx</B> macros store the
33 current beginning coordinates and size of the specified
38 <H2>RETURN VALUE</H2><PRE>
39 The return values of these macros are undefined (<I>i</I>.<I>e</I>.,
40 they should not be used as the right-hand side of assign-
46 All of these interfaces are macros and that "<B>&</B>" is not
47 necessary before the variables <I>y</I> and <I>x</I>.
51 <H2>PORTABILITY</H2><PRE>
52 These functions are described in the XSI Curses standard,
57 <H2>SEE ALSO</H2><PRE>
58 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>
76 Man(1) output converted with
77 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>