table of contents
other versions
- Tumbleweed 6.5.20250920-83.1
- Leap-16.0
- Leap-15.6
key_defined(3NCURSES) | Library calls | key_defined(3NCURSES) |
NAME¶
key_defined - test whether a curses function key code is defined
SYNOPSIS¶
#include <ncursesw/curses.h>
int key_defined(const char * definition);
DESCRIPTION¶
The key_defined ncurses extension permits a curses application to determine the function key code, if any, to which the string definition is bound.
RETURN VALUE¶
key_defined returns the first key code to which definition is bound if any exists. If none does, it returns 0. If definition is a prefix of another bound definition, key_defined returns -1.
EXTENSIONS¶
key_defined is an ncurses extension.
PORTABILITY¶
Applications employing ncurses extensions should condition their use on the visibility of the NCURSES_VERSION preprocessor macro.
AUTHORS¶
Thomas Dickey
SEE ALSO¶
ncurses(3NCURSES), define_key(3NCURSES), keybound(3NCURSES), keyok(3NCURSES)
2025-08-23 | ncurses 6.5 |