4 <STRONG>keyok</STRONG> - enable or disable a keycode
9 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
11 <STRONG>int</STRONG> <STRONG>keyok(int</STRONG> <STRONG>keycode,</STRONG> <STRONG>bool</STRONG> <STRONG>enable);</STRONG>
15 <H2>DESCRIPTION</H2><PRE>
16 This is an extension to the curses library. It permits an
17 application to disable specific keycodes, rather than use
18 the <EM>keypad</EM> function to disable all keycodes. Keys that
19 have been disabled can be reenabled.
23 <H2>RETURN VALUE</H2><PRE>
24 The keycode must be greater than zero, else ERR is
25 returned. If it does not correspond to a defined key,
26 then ERR is returned. If the <EM>enable</EM> parameter is true,
27 then the key must have been disabled, and vice versa.
28 Otherwise, the function returns OK.
32 <H2>PORTABILITY</H2><PRE>
33 These routines are specific to ncurses. They were not
34 supported on Version 7, BSD or System V implementations.
35 It is recommended that any code depending on them be con-
36 ditioned using NCURSES_VERSION.
40 <H2>SEE ALSO</H2><PRE>
41 <STRONG><A HREF="define_key.3x.html">define_key(3X)</A></STRONG>.