# tty_term_create

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

```c
struct tty_term * tty_term_create(struct tty *tty, char *name, char **caps, u_int ncaps, int *feat, char **cause)
```

## Parameters

- `tty` (`struct tty *`)
- `name` (`char *`)
- `caps` (`char **`)
- `ncaps` (`u_int`)
- `feat` (`int *`)
- `cause` (`char **`)

## Called by

- [`tty_open`](/en/tmux/3.2a/reference/c-function-tty_open/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L252)

## 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#L530)
- [`options_array_first`](/en/tmux/3.2a/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L575)
- [`options_array_item_value`](/en/tmux/3.2a/reference/c-function-options_array_item_value/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L577)
- [`options_array_next`](/en/tmux/3.2a/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L584)
- [`options_get_only`](/en/tmux/3.2a/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L574)
- [`tty_add_features`](/en/tmux/3.2a/reference/c-function-tty_add_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L583)
- [`tty_apply_features`](/en/tmux/3.2a/reference/c-function-tty_apply_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L631)
- [`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#L594)
- [`tty_term_flag`](/en/tmux/3.2a/reference/c-function-tty_term_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L619)
- [`tty_term_free`](/en/tmux/3.2a/reference/c-function-tty_term_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L641)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L597)
- [`tty_term_override_next`](/en/tmux/3.2a/reference/c-function-tty-term-c-tty_term_override_next/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L581)
- [`tty_term_string`](/en/tmux/3.2a/reference/c-function-tty_term_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L618)
- [`tty_term_strip`](/en/tmux/3.2a/reference/c-function-tty-term-c-tty_term_strip/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L559)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L598)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L532)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L534)

## Other function references

- [`tty_term_describe`](/en/tmux/3.2a/reference/c-function-tty_term_describe/) (function)
- [`tty_term_ncodes`](/en/tmux/3.2a/reference/c-function-tty_term_ncodes/) (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.flags`](/en/tmux/3.2a/reference/c-struct-tty_term-flags/) (attribute)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (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)
- [`options_value.string`](/en/tmux/3.2a/reference/c-union-options_value-string/) (attribute)
- [`TERM_VT100LIKE`](/en/tmux/3.2a/reference/c-define-tmux-h-term_vt100like/) (constant)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_term.tty`](/en/tmux/3.2a/reference/c-struct-tty_term-tty/) (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)
- [`TTYC_CLEAR`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_clear/) (constant)
- [`TTYC_CUP`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cup/) (constant)
- [`TTYC_RGB`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_rgb/) (constant)
- [`TTYC_SETRGBB`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_setrgbb/) (constant)
- [`TTYC_SETRGBF`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_setrgbf/) (constant)
- [`TTYC_TC`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_tc/) (constant)
- [`TTYC_XT`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_xt/) (constant)
- [`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)
