extensions(3ncurses) [x11r4 man page]
extensions(3NCURSES) extensions(3NCURSES) NAME
curses_version, use_extended_names - miscellaneous curses extensions SYNOPSIS
#include <curses.h> const char * curses_version(void); int use_extended_names(bool enable); DESCRIPTION
These functions are extensions to the curses library which do not fit easily into other categories. Use curses_version() to get the version number, including patch level of the library, e.g., 5.0.19991023 The use_extended_names() function controls whether the calling application is able to use user-defined or nonstandard names which may be compiled into the terminfo description, i.e., via the terminfo or termcap interfaces. Normally these names are available for use, since the essential decision is made by using the -x option of tic to compile extended terminal definitions. However you can disable this fea- ture to ensure compatibility with other implementations of curses. PORTABILITY
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on them be conditioned using NCURSES_VERSION. SEE ALSO
getch(3NCURSES), mouse(3NCURSES), print(3NCURSES), util(3NCURSES), default_colors(3NCURSES), define_key(3NCURSES), keybound(3NCURSES), keyok(3NCURSES), resizeterm(3NCURSES), wresize(3NCURSES). AUTHOR
Thomas Dickey. extensions(3NCURSES)
Check Out this Related Man Page
opaque(3NCURSES) opaque(3NCURSES) NAME
is_cleared, is_idlok, is_idcok, is_immedok, is_keypad, is_leaveok, is_nodelay, is_notimeout, is_pad, is_scrollok, is_subwin, is_syncok - curses window properties SYNOPSIS
#include <curses.h> bool is_cleared(const WINDOW *win); bool is_idcok(const WINDOW *win); bool is_idlok(const WINDOW *win); bool is_immedok(const WINDOW *win); bool is_keypad(const WINDOW *win); bool is_leaveok(const WINDOW *win); bool is_nodelay(const WINDOW *win); bool is_notimeout(const WINDOW *win); bool is_pad(const WINDOW *win); bool is_scrollok(const WINDOW *win); bool is_subwin(const WINDOW *win); bool is_syncok(const WINDOW *win); WINDOW * wgetparent(const WINDOW *win); int wgetscrreg(const WINDOW *win, int *top, int *bottom); DESCRIPTION
This implementation provides functions which return properties set in the WINDOW structure, allowing it to be ``opaque'' if the symbol NCURSES_OPAQUE is defined: is_cleared returns the value set in clearok is_idcok returns the value set in idcok is_idlok returns the value set in idlok is_immedok returns the value set in immedok is_keypad returns the value set in keypad is_leaveok returns the value set in leaveok is_nodelay returns the value set in nodelay is_notimeout returns the value set in notimeout is_pad returns TRUE if the window is a pad i.e., created by newpad is_scrollok returns the value set in scrollok is_subwin returns TRUE if the window is a subwindow, i.e., created by subwin or derwin is_syncok returns the value set in syncok wgetparent returns the parent WINDOW pointer for subwindows, or NULL for windows having no parent. wgetscrreg returns the top and bottom rows for the scrolling margin as set in wsetscrreg. RETURN VALUE
These functions all return TRUE or FALSE, except as noted. NOTES
Both a macro and a function are provided for each name. PORTABILITY
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on ncurses extensions be conditioned using NCURSES_VERSION. SEE ALSO
ncurses(3NCURSES), inopts(3NCURSES), outopts(3NCURSES), window(3NCURSES) opaque(3NCURSES)