]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/define_key.3x.html
ncurses 4.2
[ncurses.git] / Ada95 / html / define_key.3x.html
1 <HTML>
2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
3 <PRE>
4        <STRONG>define_key</STRONG> - define a keycode
5
6
7 </PRE>
8 <H2>SYNOPSIS</H2><PRE>
9        <STRONG>#include</STRONG> <STRONG>&lt;curses.h&gt;</STRONG>
10
11        <STRONG>int</STRONG> <STRONG>define_key(char</STRONG> <STRONG>*definition,</STRONG> <STRONG>int</STRONG> <STRONG>keycode);</STRONG>
12
13
14 </PRE>
15 <H2>DESCRIPTION</H2><PRE>
16        This is an extension to the curses library.  It permits an
17        application to define keycodes  with  their  corresponding
18        control  strings,  so that the ncurses library will inter-
19        pret them just as it would the  predefined  codes  in  the
20        terminfo database.
21
22        If  the  given string is null, any existing definition for
23        the keycode is removed.
24
25
26 </PRE>
27 <H2>RETURN VALUE</H2><PRE>
28        The keycode  must  be  greater  than  zero,  else  ERR  is
29        returned.
30
31
32 </PRE>
33 <H2>PORTABILITY</H2><PRE>
34        These  routines  are  specific  to ncurses.  They were not
35        supported on Version 7, BSD or System  V  implementations.
36        It  is recommended that any code depending on them be con-
37        ditioned using NCURSES_VERSION.
38
39
40 </PRE>
41 <H2>SEE ALSO</H2><PRE>
42        <STRONG><A HREF="keyok.3x.html">keyok(3X)</A></STRONG>.
43
44
45 </PRE>
46 <H2>AUTHOR</H2><PRE>
47        Thomas Dickey.
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 </PRE>
69 </BODY>
70 </HTML>