# tty_force_cursor_colour

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L647
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty-c-tty_force_cursor_colour/

```c
static void tty_force_cursor_colour(struct tty *, const char *)
```

## Parameters

- `tty` (`struct tty *`)
- `ccolour` (`const char *`)

## Called by

- [`tty_start_tty`](/en/tmux/3.2a/reference/c-function-tty_start_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L339)
- [`tty_update_mode`](/en/tmux/3.2a/reference/c-function-tty_update_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L664)

## Calls

- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L650)
- [`tty_putcode_ptr1`](/en/tmux/3.2a/reference/c-function-tty_putcode_ptr1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L652)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L654)

## Referenced declarations

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