# tty_keys_palette

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1757
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_palette/

```c
static int tty_keys_palette(struct tty *, const char *, size_t, size_t *)
```

## Parameters

- `tty` (`struct tty *`)
- `buf` (`const char *`)
- `len` (`size_t`)
- `size` (`size_t *`)

## Called by

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

## Calls

- [`colour_parseX11`](/en/tmux/latest/reference/c-function-colour_parsex11/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1813)
- [`input_request_reply`](/en/tmux/latest/reference/c-function-input_request_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1817)

## Referenced declarations

- [`input_request_palette_data.c`](/en/tmux/latest/reference/c-struct-input_request_palette_data-c/) (attribute)
- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`input_request_palette_data.idx`](/en/tmux/latest/reference/c-struct-input_request_palette_data-idx/) (attribute)
- [`INPUT_REQUEST_PALETTE`](/en/tmux/latest/reference/c-enum-input_request_type-input_request_palette/) (constant)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
