# tty_keys_clipboard

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

```c
static int tty_keys_clipboard(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#L767)

## Calls

- [`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#L1425)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1419)
- [`paste_add`](/en/tmux/latest/reference/c-function-paste_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1429)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1402)

## Referenced declarations

- [`input_request_clipboard_data.buf`](/en/tmux/latest/reference/c-struct-input_request_clipboard_data-buf/) (attribute)
- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`input_request_clipboard_data.clip`](/en/tmux/latest/reference/c-struct-input_request_clipboard_data-clip/) (attribute)
- [`tty.clipboard_timer`](/en/tmux/latest/reference/c-struct-tty-clipboard_timer/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`INPUT_REQUEST_CLIPBOARD`](/en/tmux/latest/reference/c-enum-input_request_type-input_request_clipboard/) (constant)
- [`input_request_clipboard_data.len`](/en/tmux/latest/reference/c-struct-input_request_clipboard_data-len/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTY_OSC52QUERY`](/en/tmux/latest/reference/c-define-tmux-h-tty_osc52query/) (constant)
