# popup_display

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L773
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-popup_display/

```c
int popup_display(int flags, enum box_lines lines, struct cmdq_item *item, u_int px, u_int py, u_int sx, u_int sy, struct environ *env, const char *shellcmd, int argc, char **argv, const char *cwd, const char *title, struct client *c, struct session *s, const char *style, const char *border_style, popup_close_cb cb, void *arg)
```

## Parameters

- `flags` (`int`)
- `lines` (`enum box_lines`)
- `item` (`struct cmdq_item *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `env` (`struct environ *`)
- `shellcmd` (`const char *`)
- `argc` (`int`)
- `argv` (`char **`)
- `cwd` (`const char *`)
- `title` (`const char *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `style` (`const char *`)
- `border_style` (`const char *`)
- `cb` (`popup_close_cb`)
- `arg` (`void *`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L511)

## Calls

- [`colour_palette_from_option`](/en/tmux/3.7c/reference/c-function-colour_palette_from_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L838)
- [`colour_palette_init`](/en/tmux/3.7c/reference/c-function-colour_palette_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L837)
- [`input_init`](/en/tmux/3.7c/reference/c-function-input_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L862)
- [`job_run`](/en/tmux/3.7c/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L864)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L790)
- [`popup_free`](/en/tmux/3.7c/reference/c-function-popup-c-popup_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L868)
- [`screen_init`](/en/tmux/3.7c/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L835)
- [`screen_set_default_cursor`](/en/tmux/3.7c/reference/c-function-screen_set_default_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L836)
- [`server_client_set_overlay`](/en/tmux/3.7c/reference/c-function-server_client_set_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L875)
- [`style_apply`](/en/tmux/3.7c/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L825)
- [`style_parse`](/en/tmux/3.7c/reference/c-function-style_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L828)
- [`style_set`](/en/tmux/3.7c/reference/c-function-style_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L827)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L805)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L810)

## Other function references

- [`job_get_event`](/en/tmux/3.7c/reference/c-function-job_get_event/) (function)
- [`popup_check_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_check_cb/) (function)
- [`popup_draw_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_draw_cb/) (function)
- [`popup_free_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_free_cb/) (function)
- [`popup_job_complete_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_job_complete_cb/) (function)
- [`popup_job_update_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_job_update_cb/) (function)
- [`popup_key_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_key_cb/) (function)
- [`popup_mode_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_mode_cb/) (function)
- [`popup_resize_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_resize_cb/) (function)

## Referenced by

- [`mode_tree_display_help`](/en/tmux/3.7c/reference/c-function-mode-tree-c-mode_tree_display_help/) (function)
- [`popup_editor`](/en/tmux/3.7c/reference/c-function-popup_editor/) (function)

## Referenced declarations

- [`popup_data.arg`](/en/tmux/3.7c/reference/c-struct-popup_data-arg/) (attribute)
- [`grid_cell.attr`](/en/tmux/3.7c/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`popup_data.border_cell`](/en/tmux/3.7c/reference/c-struct-popup_data-border_cell/) (attribute)
- [`popup_data.border_lines`](/en/tmux/3.7c/reference/c-struct-popup_data-border_lines/) (attribute)
- [`popup_data.border_style`](/en/tmux/3.7c/reference/c-struct-popup_data-border_style/) (attribute)
- [`box_lines`](/en/tmux/3.7c/reference/c-enum-box_lines/) (enum)
- [`BOX_LINES_DEFAULT`](/en/tmux/3.7c/reference/c-enum-box_lines-box_lines_default/) (constant)
- [`BOX_LINES_NONE`](/en/tmux/3.7c/reference/c-enum-box_lines-box_lines_none/) (constant)
- [`popup_data.c`](/en/tmux/3.7c/reference/c-struct-popup_data-c/) (attribute)
- [`popup_data.cb`](/en/tmux/3.7c/reference/c-struct-popup_data-cb/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`session.curw`](/en/tmux/3.7c/reference/c-struct-session-curw/) (attribute)
- [`popup_data.defaults`](/en/tmux/3.7c/reference/c-struct-popup_data-defaults/) (attribute)
- [`environ`](/en/tmux/3.7c/reference/c-struct-environ/) (struct)
- [`grid_cell.fg`](/en/tmux/3.7c/reference/c-struct-grid_cell-fg/) (attribute)
- [`popup_data.flags`](/en/tmux/3.7c/reference/c-struct-popup_data-flags/) (attribute)
- [`style.gc`](/en/tmux/3.7c/reference/c-struct-style-gc/) (attribute)
- [`global_w_options`](/en/tmux/3.7c/reference/c-variable-global_w_options/) (attribute)
- [`grid_default_cell`](/en/tmux/3.7c/reference/c-variable-grid_default_cell/) (attribute)
- [`popup_data.ictx`](/en/tmux/3.7c/reference/c-struct-popup_data-ictx/) (attribute)
- [`popup_data.item`](/en/tmux/3.7c/reference/c-struct-popup_data-item/) (attribute)
- [`popup_data.job`](/en/tmux/3.7c/reference/c-struct-popup_data-job/) (attribute)
- [`JOB_DEFAULTSHELL`](/en/tmux/3.7c/reference/c-define-tmux-h-job_defaultshell/) (constant)
- [`JOB_KEEPWRITE`](/en/tmux/3.7c/reference/c-define-tmux-h-job_keepwrite/) (constant)
- [`JOB_NOWAIT`](/en/tmux/3.7c/reference/c-define-tmux-h-job_nowait/) (constant)
- [`JOB_PTY`](/en/tmux/3.7c/reference/c-define-tmux-h-job_pty/) (constant)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`popup_data.palette`](/en/tmux/3.7c/reference/c-struct-popup_data-palette/) (attribute)
- [`popup_close_cb`](/en/tmux/3.7c/reference/c-typedef-popup_close_cb/) (typealias)
- [`POPUP_NOJOB`](/en/tmux/3.7c/reference/c-define-tmux-h-popup_nojob/) (constant)
- [`popup_data.ppx`](/en/tmux/3.7c/reference/c-struct-popup_data-ppx/) (attribute)
- [`popup_data.ppy`](/en/tmux/3.7c/reference/c-struct-popup_data-ppy/) (attribute)
- [`popup_data.psx`](/en/tmux/3.7c/reference/c-struct-popup_data-psx/) (attribute)
- [`popup_data.psy`](/en/tmux/3.7c/reference/c-struct-popup_data-psy/) (attribute)
- [`popup_data.px`](/en/tmux/3.7c/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/3.7c/reference/c-struct-popup_data-py/) (attribute)
- [`client.references`](/en/tmux/3.7c/reference/c-struct-client-references/) (attribute)
- [`popup_data.s`](/en/tmux/3.7c/reference/c-struct-popup_data-s/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`popup_data.status`](/en/tmux/3.7c/reference/c-struct-popup_data-status/) (attribute)
- [`popup_data.style`](/en/tmux/3.7c/reference/c-struct-popup_data-style/) (attribute)
- [`popup_data.sx`](/en/tmux/3.7c/reference/c-struct-popup_data-sx/) (attribute)
- [`tty.sx`](/en/tmux/3.7c/reference/c-struct-tty-sx/) (attribute)
- [`popup_data.sy`](/en/tmux/3.7c/reference/c-struct-popup_data-sy/) (attribute)
- [`tty.sy`](/en/tmux/3.7c/reference/c-struct-tty-sy/) (attribute)
- [`popup_data.title`](/en/tmux/3.7c/reference/c-struct-popup_data-title/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
