# tty_putcode

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

```c
void tty_putcode(struct tty *tty, enum tty_code_code code)
```

## Parameters

- `tty` (`struct tty *`)
- `code` (`enum tty_code_code`)

## Called by

- [`alerts_set_message`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_set_message/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L314)
- [`tty_attributes`](/en/tmux/3.2a/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2309)
- [`tty_clear_area`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_area/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1160)
- [`tty_clear_line`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1037)
- [`tty_cmd_reverseindex`](/en/tmux/3.2a/reference/c-function-tty_cmd_reverseindex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1645)
- [`tty_cmd_scrolldown`](/en/tmux/3.2a/reference/c-function-tty_cmd_scrolldown/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1752)
- [`tty_colours_us`](/en/tmux/3.2a/reference/c-function-tty-c-tty_colours_us/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2604)
- [`tty_cursor`](/en/tmux/3.2a/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2136)
- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1342)
- [`tty_emulate_repeat`](/en/tmux/3.2a/reference/c-function-tty-c-tty_emulate_repeat/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L748)
- [`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#L650)
- [`tty_invalidate`](/en/tmux/3.2a/reference/c-function-tty-c-tty_invalidate/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1988)
- [`tty_margin`](/en/tmux/3.2a/reference/c-function-tty-c-tty_margin/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2076)
- [`tty_reset`](/en/tmux/3.2a/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1969)
- [`tty_set_italics`](/en/tmux/3.2a/reference/c-function-tty-c-tty_set_italics/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L627)
- [`tty_set_title`](/en/tmux/3.2a/reference/c-function-tty_set_title/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L641)
- [`tty_start_tty`](/en/tmux/3.2a/reference/c-function-tty_start_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L315)
- [`tty_update_features`](/en/tmux/3.2a/reference/c-function-tty_update_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L460)
- [`tty_update_mode`](/en/tmux/3.2a/reference/c-function-tty_update_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L680)

## Calls

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

## Other function references

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