---
name: "termkey_set_flags"
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_flags"
---

# termkey\_set\_flags(3)

control the operational flags

## NAME

termkey\_set\_flags, termkey\_get\_flags - control the operational flags

## SYNOPSIS

```
#include <termkey.h>

void termkey_set_flags(TermKey *tk, int newflags);
int termkey_get_flags(TermKey *tk);
```

Link with *-ltermkey*.

## DESCRIPTION

**termkey\_set\_flags**() changes the set of operation flags in the [**termkey**(7)](/termkey/7.md) instance to those given by *newflags*.

**termkey\_get\_flags**() returns the value set by the last call to **termkey\_set\_flags**(), or the value given to the constructor.

## RETURN VALUE

**termkey\_set\_flags**() returns no value. **termkey\_get\_flags**() returns the current operational flags.

## SEE ALSO

[**termkey\_new**(3)](/termkey_new/3.md), [**termkey**(7)](/termkey/7.md)
