# tty_term_apply

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L357
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-tty_apply_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-features.c#L331)
- [`tty_term_apply_overrides`](/en/tmux/3.2a/reference/c-function-tty_term_apply_overrides/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L452)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L388)
- [`strtonum`](/en/tmux/3.2a/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L415)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L375)

## Other function references

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

## Referenced by

- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

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