1TERMKEY_GET_KEYNAME(3) Library Functions Manual TERMKEY_GET_KEYNAME(3)
2
3
4
6 termkey_get_keyname - return a string name for a symbolic key
7
9 #include <termkey.h>
10
11 const char *termkey_get_keyname(TermKey *tk, TermKeySym sym);
12
13 Link with -ltermkey.
14
16 termkey_get_keyname() returns a human-readable string name for the sym‐
17 bolic key value given by sym. The returned string is owned by the
18 termkey(7) instance tk so should not be modified or freed. The returned
19 pointer is guaranteed to be valid until the instance is released using
20 termkey_destroy(3). This function is the inverse of termkey_key‐
21 name2sym(3).
22
24 termkey_get_key() returns a pointer to a string.
25
27 termkey_lookup_keyname(3), termkey_keyname2sym(3), termkey_strfkey(3),
28 termkey(7)
29
30
31
32 TERMKEY_GET_KEYNAME(3)