# tty_colours

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2715
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2666)

## Calls

- [`tty_colours_bg`](/en/tmux/latest/reference/c-function-tty-c-tty_colours_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2757)
- [`tty_colours_fg`](/en/tmux/latest/reference/c-function-tty-c-tty_colours_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2750)
- [`tty_colours_us`](/en/tmux/latest/reference/c-function-tty-c-tty_colours_us/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2761)
- [`tty_puts`](/en/tmux/latest/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2738)
- [`tty_reset`](/en/tmux/latest/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2735)
- [`tty_term_flag`](/en/tmux/latest/reference/c-function-tty_term_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2734)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/latest/reference/c-struct-grid_cell-bg/) (attribute)
- [`tty.cell`](/en/tmux/latest/reference/c-struct-tty-cell/) (attribute)
- [`COLOUR_DEFAULT`](/en/tmux/latest/reference/c-define-tmux-h-colour_default/) (constant)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTYC_AX`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_ax/) (constant)
- [`grid_cell.us`](/en/tmux/latest/reference/c-struct-grid_cell-us/) (attribute)
