# tty_keys_build

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

```c
void tty_keys_build(struct tty *tty)
```

## Parameters

- `tty` (`struct tty *`)

## Called by

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

## Calls

- [`options_array_first`](/en/tmux/3.2a/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L521)
- [`options_array_item_index`](/en/tmux/3.2a/reference/c-function-options_array_item_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L523)
- [`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-keys.c#L524)
- [`options_array_next`](/en/tmux/3.2a/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L526)
- [`options_get`](/en/tmux/3.2a/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L519)
- [`tty_keys_add`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L500)
- [`tty_keys_free`](/en/tmux/3.2a/reference/c-function-tty_keys_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L490)
- [`tty_term_string`](/en/tmux/3.2a/reference/c-function-tty_term_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L513)

## Referenced by

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

## Referenced declarations

- [`tty_default_key_code.code`](/en/tmux/3.2a/reference/c-struct-tty_default_key_code-code/) (attribute)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (attribute)
- [`tty_default_key_code.key`](/en/tmux/3.2a/reference/c-struct-tty_default_key_code-key/) (attribute)
- [`tty_default_key_raw.key`](/en/tmux/3.2a/reference/c-struct-tty_default_key_raw-key/) (attribute)
- [`tty_default_key_xterm.key`](/en/tmux/3.2a/reference/c-struct-tty_default_key_xterm-key/) (attribute)
- [`tty.key_tree`](/en/tmux/3.2a/reference/c-struct-tty-key_tree/) (attribute)
- [`KEYC_USER`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_user/) (constant)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
- [`tty_default_key_raw.string`](/en/tmux/3.2a/reference/c-struct-tty_default_key_raw-string/) (attribute)
- [`options_value.string`](/en/tmux/3.2a/reference/c-union-options_value-string/) (attribute)
- [`tty_default_key_xterm.template`](/en/tmux/3.2a/reference/c-struct-tty_default_key_xterm-template/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_default_code_keys`](/en/tmux/3.2a/reference/c-variable-tty-keys-c-tty_default_code_keys/) (attribute)
- [`tty_default_raw_keys`](/en/tmux/3.2a/reference/c-variable-tty-keys-c-tty_default_raw_keys/) (attribute)
- [`tty_default_xterm_keys`](/en/tmux/3.2a/reference/c-variable-tty-keys-c-tty_default_xterm_keys/) (attribute)
- [`tty_default_xterm_modifiers`](/en/tmux/3.2a/reference/c-variable-tty-keys-c-tty_default_xterm_modifiers/) (attribute)
