4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>keyok</B> - enable or disable a keycode
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><curses.h></B>
15 <B>int</B> <B>keyok(int</B> <B>keycode,</B> <B>bool</B> <B>enable);</B>
19 <H2>DESCRIPTION</H2><PRE>
20 This is an extension to the curses library. It permits an
21 application to disable specific keycodes, rather than use
22 the <I>keypad</I> function to disable all keycodes. Keys that
23 have been disabled can be reenabled.
27 <H2>RETURN VALUE</H2><PRE>
28 The keycode must be greater than zero, else ERR is
29 returned. If it does not correspond to a defined key,
30 then ERR is returned. If the <I>enable</I> parameter is true,
31 then the key must have been disabled, and vice versa.
32 Otherwise, the function returns OK.
36 <H2>PORTABILITY</H2><PRE>
37 These routines are specific to ncurses. They were not
38 supported on Version 7, BSD or System V implementations.
39 It is recommended that any code depending on them be con-
40 ditioned using NCURSES_VERSION.
44 <H2>SEE ALSO</H2><PRE>
45 <B><A HREF="define_key.3x.html">define_key(3x)</A></B>.
76 Man(1) output converted with
77 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>