1key_defined(3X)                                                key_defined(3X)
2
3
4

NAME

6       key_defined - check if a keycode is defined
7

SYNOPSIS

9       #include <curses.h>
10
11       int key_defined(const char *definition);
12

DESCRIPTION

14       This  is an extension to the curses library.  It permits an application
15       to determine if a string is currently bound to any keycode.
16

RETURN VALUE

18       If the string is bound to a keycode, its value (greater than  zero)  is
19       returned.   If  no  keycode  is bound, zero is returned.  If the string
20       conflicts with longer strings which are bound to keys, -1 is returned.
21

PORTABILITY

23       These routines are specific to ncurses.  They  were  not  supported  on
24       Version 7, BSD or System V implementations.  It is recommended that any
25       code depending on them be conditioned using NCURSES_VERSION.
26

SEE ALSO

28       define_key(3X).
29

AUTHOR

31       Thomas Dickey.
32
33
34
35                                                               key_defined(3X)
Impressum