TERMKEY\_SET\_CANONFLAGS(3) Library Functions Manual TERMKEY\_SET\_CANONFLAGS(3)

# [NAME](#NAME)

termkey\_set\_canonflags, termkey\_get\_canonflags - control the canonicalisation flags

# [SYNOPSIS](#SYNOPSIS)

```
#include <termkey.h>

void termkey_set_canonflags(TermKey *tk, int newflags);
int termkey_get_canonflags(TermKey *tk);
```

Link with *-ltermkey*.

# [DESCRIPTION](#DESCRIPTION)

**termkey\_set\_canonflags**() changes the set of canonicalisation flags in the [**termkey**(7)](/man/os/libtermkey/termkey.7) instance to those given by *newflags*. For detail on the available flags and their meaning, see the **termkey** manpage.

**termkey\_get\_canonflags**() returns the value set by the last call to **termkey\_set\_canonflags**().

# [RETURN VALUE](#RETURN_VALUE)

**termkey\_set\_canonflags**() returns no value. **termkey\_get\_canonflags**() returns the current canonicalisation flags.

# [SEE ALSO](#SEE_ALSO)

[**termkey\_canonicalise**(3)](/man/os/libtermkey/termkey_canonicalise.3), [**termkey**(7)](/man/os/libtermkey/termkey.7)

---

Document: termkey_set_canonflags(3) from libtermkey 0.22-r8 (Chainguard OS)
