# tty_term_apply

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L363
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty_term_apply/

```c
void tty_term_apply(struct tty_term *term, const char *capabilities, int quiet)
```

## Parameters

- `term` (`struct tty_term *`)
- `capabilities` (`const char *`)
- `quiet` (`int`)

## Called by

- [`tty_apply_features`](/en/tmux/3.7c/reference/c-function-tty_apply_features/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-features.c#L466)
- [`tty_term_apply_overrides`](/en/tmux/3.7c/reference/c-function-tty_term_apply_overrides/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L458)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L394)
- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L421)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L381)

## Other function references

- [`tty_term_ncodes`](/en/tmux/3.7c/reference/c-function-tty_term_ncodes/) (function)
- [`tty_term_override_next`](/en/tmux/3.7c/reference/c-function-tty-term-c-tty_term_override_next/) (function)

## Referenced declarations

- [`tty_term.codes`](/en/tmux/3.7c/reference/c-struct-tty_term-codes/) (attribute)
- [`tty_term_code_entry.name`](/en/tmux/3.7c/reference/c-struct-tty_term_code_entry-name/) (attribute)
- [`tty_term.name`](/en/tmux/3.7c/reference/c-struct-tty_term-name/) (attribute)
- [`tty_term`](/en/tmux/3.7c/reference/c-struct-tty_term/) (struct)
- [`tty_term_codes`](/en/tmux/3.7c/reference/c-variable-tty-term-c-tty_term_codes/) (attribute)
- [`TTYCODE_FLAG`](/en/tmux/3.7c/reference/c-enum-tty_code_type-ttycode_flag/) (constant)
- [`TTYCODE_NONE`](/en/tmux/3.7c/reference/c-enum-tty_code_type-ttycode_none/) (constant)
- [`TTYCODE_NUMBER`](/en/tmux/3.7c/reference/c-enum-tty_code_type-ttycode_number/) (constant)
- [`TTYCODE_STRING`](/en/tmux/3.7c/reference/c-enum-tty_code_type-ttycode_string/) (constant)
- [`tty_code.type`](/en/tmux/3.7c/reference/c-struct-tty_code-type/) (attribute)
- [`tty_term_code_entry.type`](/en/tmux/3.7c/reference/c-struct-tty_term_code_entry-type/) (attribute)
- [`tty_code.value`](/en/tmux/3.7c/reference/c-struct-tty_code-value/) (attribute)
