# tty_keys_add1

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

```c
static void tty_keys_add1(struct tty_key **, const char *, key_code)
```

## Parameters

- `tkp` (`struct tty_key **`)
- `s` (`const char *`)
- `key` (`key_code`)

## Called by

- [`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#L429)
- [`tty_keys_add1`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_add1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L471)

## Calls

- [`tty_keys_add1`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_add1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L471)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L445)

## Referenced declarations

- [`tty_key.ch`](/en/tmux/3.2a/reference/c-struct-tty_key-ch/) (attribute)
- [`tty_key.key`](/en/tmux/3.2a/reference/c-struct-tty_key-key/) (attribute)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_UNKNOWN`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_unknown/) (constant)
- [`tty_key.left`](/en/tmux/3.2a/reference/c-struct-tty_key-left/) (attribute)
- [`tty_key.next`](/en/tmux/3.2a/reference/c-struct-tty_key-next/) (attribute)
- [`tty_key.right`](/en/tmux/3.2a/reference/c-struct-tty_key-right/) (attribute)
- [`tty_key`](/en/tmux/3.2a/reference/c-struct-tty_key/) (struct)
