# input_osc_parse_colour

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

```c
static int input_osc_parse_colour(const char *p)
```

## Parameters

- `p` (`const char *`)

## Calls

- [`colour_byname`](/en/tmux/3.2a/reference/c-function-colour_byname/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2472)
- [`colour_join_rgb`](/en/tmux/3.2a/reference/c-function-colour_join_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2451)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2475)
- [`xstrndup`](/en/tmux/3.2a/reference/c-function-xstrndup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2471)

## Other function references

- [`colour_tostring`](/en/tmux/3.2a/reference/c-function-colour_tostring/) (function)

## Referenced by

- [`input_osc_10`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_10/) (function)
- [`input_osc_11`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_11/) (function)
- [`input_osc_4`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_4/) (function)
