# tty_add_features

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-features.c#L262
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty_add_features/

```c
void tty_add_features(int *feat, const char *s, const char *separators)
```

## Parameters

- `feat` (`int *`)
- `s` (`const char *`)
- `separators` (`const char *`)

## Called by

- [`main`](/en/tmux/3.2a/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.c#L361)
- [`tty_default_features`](/en/tmux/3.2a/reference/c-function-tty_default_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-features.c#L385)
- [`tty_keys_device_attributes`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L1285)
- [`tty_term_create`](/en/tmux/3.2a/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L583)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-features.c#L268)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-features.c#L270)

## Referenced by

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

## Referenced declarations

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