# menu_display

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

```c
int menu_display(struct menu *menu, int flags, struct cmdq_item *item, u_int px, u_int py, struct client *c, struct cmd_find_state *fs, menu_choice_cb cb, void *data)
```

## Parameters

- `menu` (`struct menu *`)
- `flags` (`int`)
- `item` (`struct cmdq_item *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `c` (`struct client *`)
- `fs` (`struct cmd_find_state *`)
- `cb` (`menu_choice_cb`)
- `data` (`void *`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L317)
- [`mode_tree_display_menu`](/en/tmux/3.2a/reference/c-function-mode-tree-c-mode_tree_display_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L971)

## Calls

- [`cmd_find_copy_state`](/en/tmux/3.2a/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L366)
- [`screen_init`](/en/tmux/3.2a/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L367)
- [`server_client_set_overlay`](/en/tmux/3.2a/reference/c-function-server_client_set_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L392)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L361)

## Other function references

- [`menu_draw_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_draw_cb/) (function)
- [`menu_free_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_free_cb/) (function)
- [`menu_key_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_key_cb/) (function)
- [`menu_mode_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_mode_cb/) (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

- [`menu_data.cb`](/en/tmux/3.2a/reference/c-struct-menu_data-cb/) (attribute)
- [`menu_data.choice`](/en/tmux/3.2a/reference/c-struct-menu_data-choice/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`menu.count`](/en/tmux/3.2a/reference/c-struct-menu-count/) (attribute)
- [`menu_data.data`](/en/tmux/3.2a/reference/c-struct-menu_data-data/) (attribute)
- [`menu_data.flags`](/en/tmux/3.2a/reference/c-struct-menu_data-flags/) (attribute)
- [`menu_data.fs`](/en/tmux/3.2a/reference/c-struct-menu_data-fs/) (attribute)
- [`menu_data.item`](/en/tmux/3.2a/reference/c-struct-menu_data-item/) (attribute)
- [`menu.items`](/en/tmux/3.2a/reference/c-struct-menu-items/) (attribute)
- [`menu`](/en/tmux/3.2a/reference/c-struct-menu/) (struct)
- [`menu_data.menu`](/en/tmux/3.2a/reference/c-struct-menu_data-menu/) (attribute)
- [`menu_choice_cb`](/en/tmux/3.2a/reference/c-typedef-menu_choice_cb/) (typealias)
- [`MENU_NOMOUSE`](/en/tmux/3.2a/reference/c-define-tmux-h-menu_nomouse/) (constant)
- [`screen.mode`](/en/tmux/3.2a/reference/c-struct-screen-mode/) (attribute)
- [`MODE_CURSOR`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`MODE_MOUSE_ALL`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_mouse_all/) (constant)
- [`menu_item.name`](/en/tmux/3.2a/reference/c-struct-menu_item-name/) (attribute)
- [`menu_data.px`](/en/tmux/3.2a/reference/c-struct-menu_data-px/) (attribute)
- [`menu_data.py`](/en/tmux/3.2a/reference/c-struct-menu_data-py/) (attribute)
- [`menu_data.s`](/en/tmux/3.2a/reference/c-struct-menu_data-s/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`menu.width`](/en/tmux/3.2a/reference/c-struct-menu-width/) (attribute)
