Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
curses_cursor, getcury, getcurx, getsyx, getyx, getbegy, getbegx, getbegyx, getmaxy, getmaxx, getmaxyx, getpary, getparx, getparyx, move, setsyx, wmove, mvcur, wcursyncup — curses cursor and window location and positioning routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>getcury(WINDOW *win);
getcurx(WINDOW *win);
getsyx(int y, int x);
getyx(WINDOW *win, int y, int x);
getbegy(WINDOW *win);
getbegx(WINDOW *win);
getbegyx(WINDOW *win, int y, int x);
getmaxy(WINDOW *win);
getmaxx(WINDOW *win);
getmaxyx(WINDOW *win, int y, int x);
getpary(WINDOW *win);
getparx(WINDOW *win);
getparyx(WINDOW *win, int y, int x);
move(int y, int x);
setsyx(int y, int x);
wmove(WINDOW *win, int y, int x);
mvcur(int oldy, int oldx, int y, int x);
wcursyncup(WINDOW *win);
DESCRIPTION
These functions and macros locate and position cursors and windows.RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:- OK
- The function completed successfully.
- ERR
- An error occurred in the function.