# tty_colours_bg

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2948
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty-c-tty_colours_bg/

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

## Parameters

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

## Called by

- [`tty_colours`](/en/tmux/3.7c/reference/c-function-tty-c-tty_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2757)

## Calls

- [`tty_putcode_i`](/en/tmux/3.7c/reference/c-function-tty_putcode_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2967)
- [`tty_puts`](/en/tmux/3.7c/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2965)
- [`tty_try_colour`](/en/tmux/3.7c/reference/c-function-tty-c-tty_try_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2955)
- [`xsnprintf`](/en/tmux/3.7c/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2964)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`tty.cell`](/en/tmux/3.7c/reference/c-struct-tty-cell/) (attribute)
- [`COLOUR_FLAG_256`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`COLOUR_FLAG_RGB`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`tty_term.flags`](/en/tmux/3.7c/reference/c-struct-tty_term-flags/) (attribute)
- [`grid_cell`](/en/tmux/3.7c/reference/c-struct-grid_cell/) (struct)
- [`tty.term`](/en/tmux/3.7c/reference/c-struct-tty-term/) (attribute)
- [`TERM_256COLOURS`](/en/tmux/3.7c/reference/c-define-tmux-h-term_256colours/) (constant)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTYC_SETAB`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_setab/) (constant)
