| legacy(3NCURSES) | Library calls | legacy(3NCURSES) |
getattrs, getbegx, getbegy, getcurx, getcury, getmaxx, getmaxy, getparx, getpary - get curses cursor and window coordinates or attributes (legacy)
#include <curses.h>
int getattrs(const WINDOW *win);
int getbegx(const WINDOW *win); int getbegy(const WINDOW *win);
int getcurx(const WINDOW *win); int getcury(const WINDOW *win);
int getmaxx(const WINDOW *win); int getmaxy(const WINDOW *win);
int getparx(const WINDOW *win); int getpary(const WINDOW *win);
These legacy functions are simpler to use than the X/Open curses functions:
Except as noted, these functions return an integer, or ERR if the window parameter is null.
These functions were supported on Version 7, BSD or System V implementations. None of those implementations checked the window parameter.
The getattrs function and macro are defined to return a (signed) integer for compatibility with those implementations although an unsigned type would have been more appropriate.
| 2025-02-15 | ncurses 6.5 |