1 .\" $NetBSD: curses_cursor.3,v 1.7 2010/02/24 13:02:13 drochner Exp $
4 .\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au)
6 .\" This code is donated to the NetBSD Foundation by the Author.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. The name of the Author may not be used to endorse or promote
17 .\" products derived from this software without specific prior written
20 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 .Nd curses cursor and window location and positioning routines
60 .Fn getcury "WINDOW *win"
62 .Fn getcurx "WINDOW *win"
64 .Fn getyx "WINDOW *win" "int y" "int x"
66 .Fn getbegy "WINDOW *win"
68 .Fn getbegx "WINDOW *win"
70 .Fn getbegyx "WINDOW *win" "int y" "int x"
72 .Fn getmaxy "WINDOW *win"
74 .Fn getmaxx "WINDOW *win"
76 .Fn getmaxyx "WINDOW *win" "int y" "int x"
78 .Fn getpary "WINDOW *win"
80 .Fn getparx "WINDOW *win"
82 .Fn getparyx "WINDOW *win" "int y" "int x"
84 .Fn move "int y" "int x"
86 .Fn wmove "WINDOW *win" "int y" "int x"
88 .Fn mvcur "int oldy" "int oldx" "int y" "int x"
90 .Fn wcursyncup "WINDOW *win"
92 These functions and macros locate and position cursors and windows.
98 functions get the current row and column positions, respectively, of the cursor in
103 macro sets the values of
107 to the current row and column positions of the cursor in the window
110 The origin row and columns of a window
113 determined by calling the
117 functions, respectively, and the maximum row and column for the window can be
118 found by calling the functions
127 macros set the values of
131 to the origin and maximum row and column positions, respectively, for the window
138 functions return the row and column position of the given subwindow relative to
146 to the origin of the subwindow relative to the window's parent.
150 function positions the cursor on the current window at the position given by
153 The cursor position is not changed on the screen until the next
158 function is the same as the
160 function, excepting that the cursor is moved in the window specified by
172 define the previous cursor position for terminals that do not support
173 absolute cursor motions.
174 The curses library may optimise the cursor motion based on these values.
177 succeeds then the curses internal structures are updated with the new
178 position of the cursor.
179 If the destination arguments for
181 exceed the terminal bounds an error will be returned and the cursor
182 position will be unchanged.
186 function sets the cursor positions of all ancestors of
191 Functions returning pointers will return
193 if an error is detected.
194 The functions that return an int will return one of the following
197 .Bl -tag -width ERR -compact
199 The function completed successfully.
201 An error occurred in the function.
208 Curses library complies with the X/Open Curses specification, part of
209 the Single Unix Specification.
220 functions are extensions.
222 The Curses package appeared in