]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_extend.3x
ncurses 6.0 - patch 20160521
[ncurses.git] / man / curs_extend.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1999-2010,2016 Free Software Foundation, Inc.              *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" Author: Thomas E. Dickey 1999-on
30 .\"
31 .\" $Id: curs_extend.3x,v 1.20 2016/05/14 23:10:54 tom Exp $
32 .TH curs_extend 3X ""
33 .SH NAME
34 \fBcurses_version\fP,
35 \fBuse_extended_names\fP \- miscellaneous curses extensions
36 .
37 .SH SYNOPSIS
38 \fB#include <curses.h>\fP
39 .sp
40 \fBconst char * curses_version(void);\fP
41 .br
42 \fBint use_extended_names(bool enable);\fP
43 .SH DESCRIPTION
44 These functions are extensions to the curses library
45 which do not fit easily into other categories.
46 .SS curses_version
47 .PP
48 Use
49 .I curses_version()
50 to get the version number, including patch level of the library, e.g.,
51 .B 5.0.19991023
52 .SS use_extended_names
53 .PP
54 The
55 .I use_extended_names()
56 function controls whether the calling application
57 is able to use user-defined or nonstandard names
58 which may be compiled into the terminfo
59 description, i.e., via the terminfo or termcap interfaces.
60 Normally these names are available for use, since the essential decision
61 is made by using the \fB\-x\fP option of \fB@TIC@\fP to compile
62 extended terminal definitions.
63 However you can disable this feature
64 to ensure compatibility with other implementations of curses.
65 .SH RETURN VALUE
66 .PP
67 \fBcurses_version\fP returns a pointer to static memory; you should not free
68 this in your application.
69 .PP
70 \fBuse_extended_names\fP returns the previous state, allowing you to
71 save this and restore it.
72 .SH PORTABILITY
73 These routines are specific to ncurses.  They were not supported on
74 Version 7, BSD or System V implementations.  It is recommended that
75 any code depending on them be conditioned using NCURSES_VERSION.
76 .SH SEE ALSO
77 \fBcurs_getch\fR(3X),
78 \fBcurs_mouse\fR(3X),
79 \fBcurs_print\fR(3X),
80 \fBcurs_util\fR(3X),
81 \fBdefault_colors\fR(3X),
82 \fBdefine_key\fR(3X),
83 \fBkeybound\fR(3X),
84 \fBkeyok\fR(3X),
85 \fBresizeterm\fR(3X),
86 \fBwresize\fR(3X).
87 .SH AUTHOR
88 Thomas Dickey.