TERMKEY_CANONICALISE(3) Library Functions Manual TERMKEY_CANONICALISE(3)

termkey_canonicalise - canonicalise a key event

#include <termkey.h>

void termkey_canonicalise(TermKey *tk, TermKeyKey *key);

Link with -ltermkey.

termkey_canonicalise(3) modifies the key event structure given by key according to the canonicalisation flags set on the given termkey instance. This operation is performed implicitly by termkey_getkey(3), termkey_waitkey(3) and termkey_strpkey(3), and is also provided explicitly by this function.

See termkey(7) for a list of canonicalisation flags.

termkey_canonicalise() returns no value.

termkey_set_canonflags(3), termkey_waitkey(3), termkey_strpkey(3), termkey(7)