1curs_extend(3X)                                                curs_extend(3X)
2
3
4

NAME

6       curses_version, use_extended_names - miscellaneous curses extensions
7

SYNOPSIS

9       #include <curses.h>
10
11       const char * curses_version(void);
12       int use_extended_names(bool enable);
13

DESCRIPTION

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, e.g., 5.0.19991023
21
22   use_extended_names
23       The  use_extended_names  function controls whether the calling applica‐
24       tion is able to use user-defined or nonstandard names which may be com‐
25       piled  into the terminfo description, i.e., via the terminfo or termcap
26       interfaces.  Normally these names are  available  for  use,  since  the
27       essential  decision  is  made  by using the -x option of tic to compile
28       extended terminal definitions.  However you can disable this feature to
29       ensure compatibility with other implementations of curses.
30

RETURN VALUE

32       curses_version  returns a pointer to static memory; you should not free
33       this in your application.
34
35       use_extended_names returns the previous state,  allowing  you  to  save
36       this and restore it.
37

PORTABILITY

39       These  routines  are  specific  to ncurses.  They were not supported on
40       Version 7, BSD or System V implementations.  It is recommended that any
41       code depending on them be conditioned using NCURSES_VERSION.
42

SEE ALSO

44       curs_getch(3X),    curs_mouse(3X),    curs_print(3X),    curs_util(3X),
45       default_colors(3X),    define_key(3X),     keybound(3X),     keyok(3X),
46       resizeterm(3X), wresize(3X).
47

AUTHOR

49       Thomas Dickey.
50
51
52
53                                                               curs_extend(3X)
Impressum