# tty_colours_us

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

```c
static void tty_colours_us(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#L2761)

## Calls

- [`colour_split_rgb`](/en/tmux/latest/reference/c-function-colour_split_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L3008)
- [`tty_putcode`](/en/tmux/latest/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2988)
- [`tty_putcode_i`](/en/tmux/latest/reference/c-function-tty_putcode_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L3016)
- [`tty_term_has`](/en/tmux/latest/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L3015)

## Referenced declarations

- [`tty.cell`](/en/tmux/latest/reference/c-struct-tty-cell/) (attribute)
- [`COLOUR_DEFAULT`](/en/tmux/latest/reference/c-define-tmux-h-colour_default/) (constant)
- [`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`](/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_OL`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_ol/) (constant)
- [`TTYC_RGB`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_rgb/) (constant)
- [`TTYC_SETAL`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_setal/) (constant)
- [`TTYC_SETULC`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_setulc/) (constant)
- [`TTYC_SETULC1`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_setulc1/) (constant)
- [`grid_cell.us`](/en/tmux/latest/reference/c-struct-grid_cell-us/) (attribute)
