# status_prompt_menu_callback

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

```c
static void status_prompt_menu_callback(struct menu *menu, u_int idx, key_code key, void *data)
```

## Parameters

- `menu` (`struct menu *`)
- `idx` (`u_int`)
- `key` (`key_code`)
- `data` (`void *`)

## Calls

- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1506)
- [`utf8_strlen`](/en/tmux/3.2a/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1507)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1503)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1501)

## Other function references

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

## Referenced by

- [`status_prompt_complete_list_menu`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_complete_list_menu/) (function)
- [`status_prompt_complete_window_menu`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_complete_window_menu/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`status_prompt_menu.c`](/en/tmux/3.2a/reference/c-struct-status_prompt_menu-c/) (attribute)
- [`CLIENT_REDRAWSTATUS`](/en/tmux/3.2a/reference/c-define-tmux-h-client_redrawstatus/) (constant)
- [`status_prompt_menu.flag`](/en/tmux/3.2a/reference/c-struct-status_prompt_menu-flag/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_none/) (constant)
- [`status_prompt_menu.list`](/en/tmux/3.2a/reference/c-struct-status_prompt_menu-list/) (attribute)
- [`menu`](/en/tmux/3.2a/reference/c-struct-menu/) (struct)
- [`client.prompt_buffer`](/en/tmux/3.2a/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_flags`](/en/tmux/3.2a/reference/c-struct-client-prompt_flags/) (attribute)
- [`client.prompt_index`](/en/tmux/3.2a/reference/c-struct-client-prompt_index/) (attribute)
- [`PROMPT_WINDOW`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_window/) (constant)
- [`status_prompt_menu.size`](/en/tmux/3.2a/reference/c-struct-status_prompt_menu-size/) (attribute)
- [`status_prompt_menu.start`](/en/tmux/3.2a/reference/c-struct-status_prompt_menu-start/) (attribute)
