---
name: "termkey_set_canonflags"
section: "3"
platform: "linux"
package: "libtermkey-dev"
version: "0.22-2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/termkey_set_canonflags"
---

# termkey\_set\_canonflags(3)

control the canonicalisation flags

## NAME

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

## SYNOPSIS

```
#include <termkey.h>

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

Link with *-ltermkey*.

## DESCRIPTION

**termkey\_set\_canonflags**() changes the set of canonicalisation flags in the [**termkey**(7)](/termkey/7.md) 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

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

## SEE ALSO

[**termkey\_canonicalise**(3)](/termkey_canonicalise/3.md), [**termkey**(7)](/termkey/7.md)
