# tty_putcode_ptr2

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

```c
void tty_putcode_ptr2(struct tty *tty, enum tty_code_code code, const void *a, const void *b)
```

## Parameters

- `tty` (`struct tty *`)
- `code` (`enum tty_code_code`)
- `a` (`const void *`)
- `b` (`const void *`)

## Called by

- [`cmd_refresh_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-refresh-client.c#L175)
- [`tty_set_selection`](/en/tmux/3.2a/reference/c-function-tty_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1911)

## Calls

- [`tty_puts`](/en/tmux/3.2a/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L532)

## Other function references

- [`tty_term_ptr2`](/en/tmux/3.2a/reference/c-function-tty_term_ptr2/) (function)

## Referenced declarations

- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_code_code`](/en/tmux/3.2a/reference/c-enum-tty_code_code/) (enum)
