# window_customize_set_option

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

```c
static void window_customize_set_option(struct client *c, struct window_customize_modedata *data, struct window_customize_itemdata *item, int global, int pane)
```

## Parameters

- `c` (`struct client *`)
- `data` (`struct window_customize_modedata *`)
- `item` (`struct window_customize_itemdata *`)
- `global` (`int`)
- `pane` (`int`)

## Called by

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

## Calls

- [`options_get`](/en/tmux/3.2a/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1025)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1086)
- [`options_set_number`](/en/tmux/3.2a/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1087)
- [`options_to_string`](/en/tmux/3.2a/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1113)
- [`status_prompt_set`](/en/tmux/3.2a/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1123)
- [`window_customize_get_tree`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_get_tree/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1082)
- [`window_customize_scope_text`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_scope_text/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1096)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1103)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1115)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1119)

## Other function references

- [`window_customize_check_item`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_check_item/) (function)
- [`window_customize_free_item_callback`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_free_item_callback/) (function)
- [`window_customize_set_option_callback`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_option_callback/) (function)

## Referenced declarations

- [`options_table_entry.choices`](/en/tmux/3.2a/reference/c-struct-options_table_entry-choices/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`window_customize_itemdata.data`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`options_table_entry.flags`](/en/tmux/3.2a/reference/c-struct-options_table_entry-flags/) (attribute)
- [`cmd_find_state.idx`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-idx/) (attribute)
- [`window_customize_itemdata.idx`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata-idx/) (attribute)
- [`window_customize_itemdata.name`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata-name/) (attribute)
- [`window_customize_itemdata.oo`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata-oo/) (attribute)
- [`OPTIONS_TABLE_CHOICE`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_choice/) (constant)
- [`OPTIONS_TABLE_FLAG`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_flag/) (constant)
- [`OPTIONS_TABLE_IS_ARRAY`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_is_array/) (constant)
- [`OPTIONS_TABLE_PANE`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_pane/) (constant)
- [`PROMPT_NOFORMAT`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_noformat/) (constant)
- [`window_customize_modedata.references`](/en/tmux/3.2a/reference/c-struct-window_customize_modedata-references/) (attribute)
- [`options_table_entry.scope`](/en/tmux/3.2a/reference/c-struct-options_table_entry-scope/) (attribute)
- [`window_customize_itemdata.scope`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata-scope/) (attribute)
- [`options_table_entry.type`](/en/tmux/3.2a/reference/c-struct-options_table_entry-type/) (attribute)
- [`WINDOW_CUSTOMIZE_GLOBAL_SESSION`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_global_session/) (constant)
- [`WINDOW_CUSTOMIZE_GLOBAL_WINDOW`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_global_window/) (constant)
- [`window_customize_itemdata`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata/) (struct)
- [`WINDOW_CUSTOMIZE_KEY`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_key/) (constant)
- [`window_customize_modedata`](/en/tmux/3.2a/reference/c-struct-window_customize_modedata/) (struct)
- [`WINDOW_CUSTOMIZE_NONE`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_none/) (constant)
- [`WINDOW_CUSTOMIZE_PANE`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_pane/) (constant)
- [`WINDOW_CUSTOMIZE_SERVER`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_server/) (constant)
- [`WINDOW_CUSTOMIZE_SESSION`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_session/) (constant)
- [`WINDOW_CUSTOMIZE_WINDOW`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_window/) (constant)
