# menu_display

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L629
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-menu_display/

```c
int menu_display(struct menu *menu, int flags, int starting_choice, struct cmdq_item *item, u_int px, u_int py, struct client *c, enum box_lines lines, const char *style, const char *selected_style, const char *border_style, struct cmd_find_state *fs, menu_choice_cb cb, void *data)
```

## Parameters

- `menu` (`struct menu *`)
- `flags` (`int`)
- `starting_choice` (`int`)
- `item` (`struct cmdq_item *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `c` (`struct client *`)
- `lines` (`enum box_lines`)
- `style` (`const char *`)
- `selected_style` (`const char *`)
- `border_style` (`const char *`)
- `fs` (`struct cmd_find_state *`)
- `cb` (`menu_choice_cb`)
- `data` (`void *`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L371)
- [`mode_tree_display_menu`](/en/tmux/latest/reference/c-function-mode-tree-c-mode_tree_display_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1158)

## Calls

- [`menu_prepare`](/en/tmux/latest/reference/c-function-menu_prepare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L637)
- [`server_client_set_overlay`](/en/tmux/latest/reference/c-function-server_client_set_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L641)

## Other function references

- [`menu_check_cb`](/en/tmux/latest/reference/c-function-menu_check_cb/) (function)
- [`menu_draw_cb`](/en/tmux/latest/reference/c-function-menu_draw_cb/) (function)
- [`menu_free_cb`](/en/tmux/latest/reference/c-function-menu_free_cb/) (function)
- [`menu_key_cb`](/en/tmux/latest/reference/c-function-menu_key_cb/) (function)
- [`menu_mode_cb`](/en/tmux/latest/reference/c-function-menu_mode_cb/) (function)
- [`menu_resize_cb`](/en/tmux/latest/reference/c-function-menu-c-menu_resize_cb/) (function)

## Referenced by

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

## Referenced declarations

- [`menu_data.border_style`](/en/tmux/latest/reference/c-struct-menu_data-border_style/) (attribute)
- [`box_lines`](/en/tmux/latest/reference/c-enum-box_lines/) (enum)
- [`menu_data.cb`](/en/tmux/latest/reference/c-struct-menu_data-cb/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`menu_data.data`](/en/tmux/latest/reference/c-struct-menu_data-data/) (attribute)
- [`menu_data.flags`](/en/tmux/latest/reference/c-struct-menu_data-flags/) (attribute)
- [`menu_data.fs`](/en/tmux/latest/reference/c-struct-menu_data-fs/) (attribute)
- [`menu_data.item`](/en/tmux/latest/reference/c-struct-menu_data-item/) (attribute)
- [`menu`](/en/tmux/latest/reference/c-struct-menu/) (struct)
- [`menu_choice_cb`](/en/tmux/latest/reference/c-typedef-menu_choice_cb/) (typealias)
- [`menu_data.px`](/en/tmux/latest/reference/c-struct-menu_data-px/) (attribute)
- [`menu_data.py`](/en/tmux/latest/reference/c-struct-menu_data-py/) (attribute)
- [`menu_data.selected_style`](/en/tmux/latest/reference/c-struct-menu_data-selected_style/) (attribute)
