# window_pane_set_palette

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

```c
void window_pane_set_palette(struct window_pane *wp, u_int n, int colour)
```

## Parameters

- `wp` (`struct window_pane *`)
- `n` (`u_int`)
- `colour` (`int`)

## Called by

- [`input_osc_4`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_4/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2523)

## Calls

- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1020)

## Referenced by

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

## Referenced declarations

- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`window_pane.palette`](/en/tmux/3.2a/reference/c-struct-window_pane-palette/) (attribute)
- [`PANE_REDRAW`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
