# tty_colours_fg

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

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

## Parameters

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

## Called by

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

## Calls

- [`tty_putcode_i`](/en/tmux/latest/reference/c-function-tty_putcode_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2935)
- [`tty_puts`](/en/tmux/latest/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2933)
- [`tty_reset`](/en/tmux/latest/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2919)
- [`tty_try_colour`](/en/tmux/latest/reference/c-function-tty-c-tty_try_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2923)
- [`xsnprintf`](/en/tmux/latest/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2932)

## 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_FLAG_256`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`COLOUR_FLAG_RGB`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`TERM_256COLOURS`](/en/tmux/latest/reference/c-define-tmux-h-term_256colours/) (constant)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTYC_SETAF`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_setaf/) (constant)
