# tty_colours

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

```c
static void tty_colours(struct tty *, const struct grid_cell *)
```

## Parameters

- `tty` (`struct tty *`)
- `gc` (`const struct grid_cell *`)

## Called by

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

## Calls

- [`tty_colours_bg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_colours_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2401)
- [`tty_colours_fg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_colours_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2394)
- [`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#L2405)
- [`tty_putcode1`](/en/tmux/3.2a/reference/c-function-tty_putcode1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2379)
- [`tty_puts`](/en/tmux/3.2a/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2377)
- [`tty_reset`](/en/tmux/3.2a/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2373)
- [`tty_term_flag`](/en/tmux/3.2a/reference/c-function-tty_term_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2371)

## Other function references

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

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`tty.cell`](/en/tmux/3.2a/reference/c-struct-tty-cell/) (attribute)
- [`COLOUR_DEFAULT`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_default/) (constant)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTYC_AX`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_ax/) (constant)
- [`TTYC_OP`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_op/) (constant)
- [`TTYC_SETAB`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_setab/) (constant)
- [`TTYC_SETAF`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_setaf/) (constant)
- [`grid_cell.us`](/en/tmux/3.2a/reference/c-struct-grid_cell-us/) (attribute)
