1curs_extend(3X) curs_extend(3X)
2
3
4
6 curses_version, use_extended_names - miscellaneous curses extensions
7
9 #include <curses.h>
10
11 const char * curses_version(void);
12 int use_extended_names(bool enable);
13
15 These functions are extensions to the curses library which do not fit
16 easily into other categories.
17
18 curses_version
19 Use curses_version to get the version number, including patch level of
20 the library, prefixed by “ncurses”, e.g.,
21
22 ncurses 5.0.19991023
23
24 use_extended_names
25 The use_extended_names function controls whether the calling applica‐
26 tion is able to use user-defined or nonstandard names which may be com‐
27 piled into the terminfo description, i.e., via the terminfo or termcap
28 interfaces. Normally these names are available for use, since the es‐
29 sential decision is made by using the -x option of tic to compile ex‐
30 tended terminal definitions. However you can disable this feature to
31 ensure compatibility with other implementations of curses.
32
34 curses_version returns a pointer to static memory; you should not free
35 this in your application.
36
37 use_extended_names returns the previous state, allowing you to save
38 this and restore it.
39
41 These routines are specific to ncurses. They were not supported on
42 Version 7, BSD or System V implementations. It is recommended that any
43 code depending on them be conditioned using NCURSES_VERSION.
44
46 curs_getch(3X), curs_mouse(3X), curs_print(3X), curs_util(3X), de‐
47 fault_colors(3X), define_key(3X), keybound(3X), keyok(3X), re‐
48 sizeterm(3X), wresize(3X).
49
51 Thomas Dickey.
52
53
54
55 curs_extend(3X)