- NetBSD Manual Pages
CURSES_KEYNAME(3) NetBSD Library Functions Manual CURSES_KEYNAME(3)
Powered by man-cgi (2021-06-01).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
curses_keyname, keyname -- curses report key name routine
Curses Library (libcurses, -lcurses)
The function keyname() generates a character string containing a descrip-
tion of the key specified in key.
The string is formatted according to the following table:
Description Key range String format
Control character 0 - 31 ^X
Visible character 32 - 126 X
Delete character 127 ^?
Meta + control character 128 - 158 M-^X
Meta + visible character 159 - 254 M-X
Meta + delete character 255 M-^?
Named key KEY_MIN - KEY_MAX KEY_EXIT
Unknown key -1
The return value of keyname() is a static buffer, which will be overwrit-
ten on a subsequent call.
The NetBSD Curses library complies with the X/Open Curses specification,
part of the Single Unix Specification.
These functions first appeared in NetBSD 2.0.
NetBSD 7.0 October 17, 2007 NetBSD 7.0