Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
curses_keyname, keyname — curses report key name routineLIBRARY
Curses Library (libcurses, -lcurses)DESCRIPTION
The function keyname() generates a character string containing a description of the key specified in key.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 |