# tty_keys_build

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L490
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1216)
- [`tty_open`](/en/tmux/latest/reference/c-function-tty_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L300)

## Calls

- [`options_array_first`](/en/tmux/latest/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L535)
- [`options_array_item_index`](/en/tmux/latest/reference/c-function-options_array_item_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L537)
- [`options_array_item_value`](/en/tmux/latest/reference/c-function-options_array_item_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L538)
- [`options_array_next`](/en/tmux/latest/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L540)
- [`options_get`](/en/tmux/latest/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L533)
- [`tty_keys_add`](/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L514)
- [`tty_keys_free`](/en/tmux/latest/reference/c-function-tty_keys_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L504)
- [`tty_term_string`](/en/tmux/latest/reference/c-function-tty_term_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L527)

## Referenced declarations

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