# colour_force_rgb

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

```c
int colour_force_rgb(int c)
```

## Parameters

- `c` (`int`)

## Called by

- [`input_osc_colour_reply`](/en/tmux/latest/reference/c-function-input-c-input_osc_colour_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2882)
- [`tty_force_cursor_colour`](/en/tmux/latest/reference/c-function-tty-c-tty_force_cursor_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L752)

## Calls

- [`colour_256toRGB`](/en/tmux/latest/reference/c-function-colour_256torgb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L115)

## Referenced by

- [`format_replace`](/en/tmux/latest/reference/c-function-format-c-format_replace/) (function)
- [`tty_check_us`](/en/tmux/latest/reference/c-function-tty-c-tty_check_us/) (function)

## Referenced declarations

- [`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)
