# tty_apply_features

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-features.c#L446
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty_apply_features/

```c
int tty_apply_features(struct tty_term *term, int feat)
```

## Parameters

- `term` (`struct tty_term *`)
- `feat` (`int`)

## Called by

- [`tty_term_create`](/en/tmux/latest/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L657)
- [`tty_update_features`](/en/tmux/latest/reference/c-function-tty_update_features/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L534)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-features.c#L454)
- [`tty_term_apply`](/en/tmux/latest/reference/c-function-tty_term_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-features.c#L466)

## Other function references

- [`tty_get_features`](/en/tmux/latest/reference/c-function-tty_get_features/) (function)

## Referenced declarations

- [`tty_feature.capabilities`](/en/tmux/latest/reference/c-struct-tty_feature-capabilities/) (attribute)
- [`tty_term.features`](/en/tmux/latest/reference/c-struct-tty_term-features/) (attribute)
- [`tty_feature.flags`](/en/tmux/latest/reference/c-struct-tty_feature-flags/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`tty_feature.name`](/en/tmux/latest/reference/c-struct-tty_feature-name/) (attribute)
- [`nitems`](/en/tmux/latest/reference/c-define-tmux-h-nitems/) (constant)
- [`tty_features`](/en/tmux/latest/reference/c-variable-tty-features-c-tty_features/) (attribute)
- [`tty_term`](/en/tmux/latest/reference/c-struct-tty_term/) (struct)
