# tty_force_cursor_colour

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

```c
static void tty_force_cursor_colour(struct tty *, int)
```

## Parameters

- `tty` (`struct tty *`)
- `c` (`int`)

## Called by

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

## Calls

- [`colour_force_rgb`](/en/tmux/3.7c/reference/c-function-colour_force_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L752)
- [`colour_split_rgb`](/en/tmux/3.7c/reference/c-function-colour_split_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L758)
- [`tty_putcode`](/en/tmux/3.7c/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L756)
- [`tty_putcode_s`](/en/tmux/3.7c/reference/c-function-tty_putcode_s/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L760)
- [`xsnprintf`](/en/tmux/3.7c/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L759)

## Referenced declarations

- [`tty.ccolour`](/en/tmux/3.7c/reference/c-struct-tty-ccolour/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTYC_CR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_cr/) (constant)
- [`TTYC_CS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_cs/) (constant)
