blob: 3092253fff0b6b06efc872a8587d3776f2f38507 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301.\"***************************************************************************
2.\" Copyright (c) 1999-2004,2006 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.17 2006/12/24 18:01:48 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
44These functions are extensions to the curses library
45which do not fit easily into other categories.
46.PP
47Use
48.I curses_version()
49to get the version number, including patch level of the library, e.g.,
50.B 5.0.19991023
51.PP
52The
53.I use_extended_names()
54function controls whether the calling application
55is able to use user-defined or nonstandard names
56which may be compiled into the terminfo
57description, i.e., via the terminfo or termcap interfaces.
58Normally these names are available for use, since the essential decision
59is made by using the \fB-x\fP option of \fB@TIC@\fP to compile
60extended terminal definitions.
61However you can disable this feature
62to ensure compatibility with other implementations of curses.
63.SH PORTABILITY
64These routines are specific to ncurses. They were not supported on
65Version 7, BSD or System V implementations. It is recommended that
66any code depending on them be conditioned using NCURSES_VERSION.
67.SH SEE ALSO
68\fBcurs_getch\fR(3X),
69\fBcurs_mouse\fR(3X),
70\fBcurs_print\fR(3X),
71\fBcurs_util\fR(3X),
72\fBdefault_colors\fR(3X),
73\fBdefine_key\fR(3X),
74\fBkeybound\fR(3X),
75\fBkeyok\fR(3X),
76\fBresizeterm\fR(3X),
77\fBwresize\fR(3X).
78.SH AUTHOR
79Thomas Dickey.
80.\"#
81.\"# The following sets edit modes for GNU EMACS
82.\"# Local Variables:
83.\"# mode:nroff
84.\"# fill-column:79
85.\"# End: