man.bsd.lv manual page server

Manual Page Search Parameters

CURSES_KEYNAME(3) Library Functions Manual CURSES_KEYNAME(3)

curses_keyname, keynamecurses report key name routine

library “libcurses”

#include <curses.h>

char *
keyname(int key);

The function () generates a character string containing a description of the key specified in key.

The string is formatted according to the following table:

Description Key range String format
0 - 31 ^X
32 - 126 X
127 ^?
128 - 158 M-^X
159 - 254 M-X
255 M-^?
KEY_MIN - KEY_MAX KEY_EXIT
-1

curses_input(3)

The return value of () is a static buffer, which will be overwritten 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.

October 17, 2007 NetBSD-9.2