Window location cursor functions.
Curses Library (libcurses.a)
The move and wmove subroutines move the logical cursor associated with the current or specified window to (y, x) relative to the window's origin. This subroutine does not move the cursor of the terminal until the next refresh (refresh or wrefresh Subroutine) operation.
Item | Description |
---|---|
y | Holds the line or row coordinate of the logical cursor. |
x | Holds the column coordinate of the logical cursor. |
*win | Identifies the window in which the cursor is being moved. |
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
move(5, 10);
WINDOW *my_window;
wmove(my_window, 5, 10);