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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
#include <termkey.h>

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

Link with *-ltermkey*.

# [DESCRIPTION](#DESCRIPTION)

**termkey\_set\_flags**() changes the set of operation flags in the [**termkey**(7)](/man/os/libtermkey/termkey.7) 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](#RETURN_VALUE)

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

# [SEE ALSO](#SEE_ALSO)

[**termkey\_new**(3)](/man/os/libtermkey/termkey_new.3), [**termkey**(7)](/man/os/libtermkey/termkey.7)

---

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