# tty_cmd_setselection

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2135
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty_cmd_setselection/

```c
void tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)

## Calls

- [`tty_set_selection`](/en/tmux/3.7c/reference/c-function-tty_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2137)

## Referenced by

- [`screen_write_setselection`](/en/tmux/3.7c/reference/c-function-screen_write_setselection/) (function)

## Referenced declarations

- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
