1keyok(3X) keyok(3X)
2
3
4
6 keyok - enable or disable a keycode
7
9 #include <curses.h>
10
11 int keyok(int keycode, bool enable);
12
14 This is an extension to the curses library. It permits an application
15 to disable specific keycodes, rather than use the keypad function to
16 disable all keycodes. Keys that have been disabled can be re-enabled.
17
19 The keycode must be greater than zero, else ERR is returned. If it
20 does not correspond to a defined key, then ERR is returned. If the
21 enable parameter is true, then the key must have been disabled, and
22 vice versa. Otherwise, the function returns OK.
23
25 These routines are specific to ncurses. They were not supported on
26 Version 7, BSD or System V implementations. It is recommended that any
27 code depending on them be conditioned using NCURSES_VERSION.
28
30 define_key(3X).
31
33 Thomas Dickey.
34
35
36
37 keyok(3X)