4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>define_key</B> - define a keycode
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><curses.h></B>
15 <B>int</B> <B>define_key(char</B> <B>*definition,</B> <B>int</B> <B>keycode);</B>
19 <H2>DESCRIPTION</H2><PRE>
20 This is an extension to the curses library. It permits an
21 application to define keycodes with their corresponding
22 control strings, so that the ncurses library will inter-
23 pret them just as it would the predefined codes in the
26 If the given string is null, any existing definition for
27 the keycode is removed. Similarly, if the given keycode
28 is negative or zero, any existing string for the given
29 definition is removed.
33 <H2>RETURN VALUE</H2><PRE>
34 The keycode must be greater than zero, else ERR is
39 <H2>PORTABILITY</H2><PRE>
40 These routines are specific to ncurses. They were not
41 supported on Version 7, BSD or System V implementations.
42 It is recommended that any code depending on them be con-
43 ditioned using NCURSES_VERSION.
47 <H2>SEE ALSO</H2><PRE>
48 <B><A HREF="keyok.3x.html">keyok(3x)</A></B>.
76 Man(1) output converted with
77 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>