# popup_display

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

```c
int popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx, u_int sy, const char *shellcmd, int argc, char **argv, const char *cwd, struct client *c, struct session *s, popup_close_cb cb, void *arg)
```

## Parameters

- `flags` (`int`)
- `item` (`struct cmdq_item *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `shellcmd` (`const char *`)
- `argc` (`int`)
- `argv` (`char **`)
- `cwd` (`const char *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `cb` (`popup_close_cb`)
- `arg` (`void *`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L393)

## Calls

- [`input_init`](/en/tmux/3.2a/reference/c-function-input_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L353)
- [`job_run`](/en/tmux/3.2a/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L350)
- [`screen_init`](/en/tmux/3.2a/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L343)
- [`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/popup.c#L355)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L332)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`popup_data.arg`](/en/tmux/3.2a/reference/c-struct-popup_data-arg/) (attribute)
- [`popup_data.c`](/en/tmux/3.2a/reference/c-struct-popup_data-c/) (attribute)
- [`popup_data.cb`](/en/tmux/3.2a/reference/c-struct-popup_data-cb/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`popup_data.flags`](/en/tmux/3.2a/reference/c-struct-popup_data-flags/) (attribute)
- [`popup_data.ictx`](/en/tmux/3.2a/reference/c-struct-popup_data-ictx/) (attribute)
- [`popup_data.item`](/en/tmux/3.2a/reference/c-struct-popup_data-item/) (attribute)
- [`popup_data.job`](/en/tmux/3.2a/reference/c-struct-popup_data-job/) (attribute)
- [`JOB_KEEPWRITE`](/en/tmux/3.2a/reference/c-define-tmux-h-job_keepwrite/) (constant)
- [`JOB_NOWAIT`](/en/tmux/3.2a/reference/c-define-tmux-h-job_nowait/) (constant)
- [`JOB_PTY`](/en/tmux/3.2a/reference/c-define-tmux-h-job_pty/) (constant)
- [`popup_close_cb`](/en/tmux/3.2a/reference/c-typedef-popup_close_cb/) (typealias)
- [`popup_data.px`](/en/tmux/3.2a/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/3.2a/reference/c-struct-popup_data-py/) (attribute)
- [`client.references`](/en/tmux/3.2a/reference/c-struct-client-references/) (attribute)
- [`popup_data.s`](/en/tmux/3.2a/reference/c-struct-popup_data-s/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`popup_data.status`](/en/tmux/3.2a/reference/c-struct-popup_data-status/) (attribute)
- [`popup_data.sx`](/en/tmux/3.2a/reference/c-struct-popup_data-sx/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`popup_data.sy`](/en/tmux/3.2a/reference/c-struct-popup_data-sy/) (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)
