# tty_keys_add1

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L452
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-tty-keys-c-tty_keys_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L443)
- [`tty_keys_add1`](/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_add1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L485)

## Calls

- [`tty_keys_add1`](/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_add1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L485)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L459)

## Referenced declarations

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