1keyok(3X)                                                            keyok(3X)
2
3
4

NAME

6       keyok - enable or disable a keycode
7

SYNOPSIS

9       #include <curses.h>
10
11       int keyok(int keycode, bool enable);
12

DESCRIPTION

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 reenabled.
17

RETURN VALUE

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

PORTABILITY

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

SEE ALSO

30       define_key(3X).
31

AUTHOR

33       Thomas Dickey.
34
35
36
37                                                                     keyok(3X)
Impressum