https://invisible-island.net/ncurses/man/

curs_move(3x)Library callscurs_move(3x)

move,wmove- move cursor in acurseswindow

#include <curses.h>int move(inty, intx);int wmove(WINDOW *win, inty, intx);

wmoverelocates the cursor associated with thecurseswindowwinto lineyand columnx. The terminal's cursor does not move untilrefresh(3x)is called. The position (y,x) is relative to the upper left-hand corner of the window, which has coordinates (0, 0).ncurses(3x)describes themovevariant of this function.

These functions returnOKon success andERRon failure. They fail if the position (y,x) is outside the window boundaries.wmovefails if itsWINDOWpointer argument isNULL.

movemay be implemented as a macro.

X/Open Curses, Issue 4 describes these functions.

curses(3x),curs_refresh(3x)ncurses 6.5 2024-04-27curs_move(3x)