p The .Fn getcury and .Fn getcurx functions get the current row and column positions, respectively, of the cursor in the window .Fa win . The .Fn getyx macro sets the values of .Fa y and .Fa x to the current row and column positions of the cursor in the window .Fa win .
p The .Fn getsyx macro sets the values of .Fa y and .Fa x of the current window if .Fn is_leaveok is false, otherwise -1, -1. The .Fn setsyx macro sets the row and column positions, respectively, of the cursor in the current window to the values of .Fa y and .Fa x . If both .Fa y and .Fa x are both -1 then .Fn leaveok is set.
p The origin row and columns of a window .Fa win can be determined by calling the .Fn getbegy and .Fn getbegx functions, respectively, and the maximum row and column for the window can be found by calling the functions .Fn getmaxy and .Fn getmaxx , respectively. The .Fn getbegyx and .Fn getmaxyx macros set the values of .Fa y and .Fa x to the origin and maximum row and column positions, respectively, for the window .Fa win .
p The .Fn getpary and .Fn getparx functions return the row and column position of the given subwindow relative to the window's parent. The macro .Fn getparyx sets the values of .Fa y and .Fa x to the origin of the subwindow relative to the window's parent.
p The .Fn move function positions the cursor on the current window at the position given by .Fa y , .Fa x . The cursor position is not changed on the screen until the next .Fn refresh .
p The .Fn wmove function is the same as the .Fn move function, excepting that the cursor is moved in the window specified by .Fa win .
p The function .Fn mvcur moves the cursor to .Fa y , .Fa x on the screen. The arguments .Fa oldy , .Fa oldx define the previous cursor position for terminals that do not support absolute cursor motions. The curses library may optimise the cursor motion based on these values. If the .Fn mvcur succeeds then the curses internal structures are updated with the new position of the cursor. If the destination arguments for .Fn mvcur exceed the terminal bounds an error will be returned and the cursor position will be unchanged.
p The .Fn wcursyncup function sets the cursor positions of all ancestors of .Fa win to that of .Fa win . .Sh RETURN VALUES Functions returning pointers will return .Dv NULL if an error is detected. The functions that return an int will return one of the following values:
p l -tag -width ERR -compact t Er OK The function completed successfully. t Er ERR An error occurred in the function. .El .Sh SEE ALSO .Xr curses_refresh 3 .Sh STANDARDS The .Nx Curses library complies with the X/Open Curses specification, part of the Single Unix Specification. The .Fn getbegx , .Fn getbegy , .Fn getcurx , .Fn getcury , .Fn getmaxx , .Fn getmaxy , .Fn getparx , and .Fn getpary functions are extensions. .Sh HISTORY The Curses package appeared in x 4.0 . The .Fn getsyx and .Fn setsyx functions are .Em ncurses extensions to the Curses library and were added in .Nx 8.0 .