termkey_get_keyname(3)

termkey_get_keyname3

Return a string name for a symbolic key

Usage

#include <termkey.h>

const char *termkey_get_keyname(TermKey *tk, TermKeySym sym);

Link with -ltermkey.

Overview

termkey_get_keyname() returns a human-readable string name for the symbolic key value given by sym. The returned string is owned by the termkey(7) instance tk so should not be modified or freed. The returned pointer is guaranteed to be valid until the instance is released using termkey_destroy(3). This function is the inverse of termkey_keyname2sym(3).

Return value

termkey_get_key() returns a pointer to a string.

From libtermkey-dev 0.22-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.