# status_prompt_menu_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1931
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1947)
- [`utf8_strlen`](/en/tmux/3.7c/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1948)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1944)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1942)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`status_prompt_menu.c`](/en/tmux/3.7c/reference/c-struct-status_prompt_menu-c/) (attribute)
- [`CLIENT_REDRAWSTATUS`](/en/tmux/3.7c/reference/c-define-tmux-h-client_redrawstatus/) (constant)
- [`status_prompt_menu.flag`](/en/tmux/3.7c/reference/c-struct-status_prompt_menu-flag/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`KEYC_NONE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_none/) (constant)
- [`status_prompt_menu.list`](/en/tmux/3.7c/reference/c-struct-status_prompt_menu-list/) (attribute)
- [`menu`](/en/tmux/3.7c/reference/c-struct-menu/) (struct)
- [`client.prompt_buffer`](/en/tmux/3.7c/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_index`](/en/tmux/3.7c/reference/c-struct-client-prompt_index/) (attribute)
- [`client.prompt_type`](/en/tmux/3.7c/reference/c-struct-client-prompt_type/) (attribute)
- [`PROMPT_TYPE_WINDOW_TARGET`](/en/tmux/3.7c/reference/c-enum-prompt_type-prompt_type_window_target/) (constant)
- [`status_prompt_menu.size`](/en/tmux/3.7c/reference/c-struct-status_prompt_menu-size/) (attribute)
- [`status_prompt_menu.start`](/en/tmux/3.7c/reference/c-struct-status_prompt_menu-start/) (attribute)
