# tty_putcode_ptr1

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

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

## Parameters

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

## Called by

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

## Calls

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

## Other function references

- [`tty_term_ptr1`](/en/tmux/3.2a/reference/c-function-tty_term_ptr1/) (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)
