# LibTmux::Client::ClientTarget.popup-async

- **Module:** LibTmux::Client
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L188
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-client-clienttarget-popup-async/

```
method popup-async(Str:D :$shell-command!, PaneId:D :$pane!, Positive:D :$timeout-ms!,
                       Str:D :$title = '', Str :$directory = Str,
                       Positive :$width = Positive, Positive :$height = Positive,
                       Str:D :$x = 'C', Str:D :$y = 'C',
                       Str:D :$close = 'exit', Bool:D :$border = True,
                       Bool:D :$close-on-key = False, Bool:D :$reset-flags = False,
                       *%operation --> Promise:D)
```

Start an explicitly supplied shell command in a popup; wait asynchronously.

Start an explicitly supplied shell command in a popup; wait asynchronously.

## Parameters

- `$shell-command` (`Str:D`)
- `$pane` (`PaneId:D`)
- `$timeout-ms` (`Positive:D`)
- `$title?` (`Str:D`)
- `$directory?` (`Str`)
- `$width?` (`Positive`)
- `$height?` (`Positive`)
- `$x?` (`Str:D`)
- `$y?` (`Str:D`)
- `$close?` (`Str:D`)
- `$border?` (`Bool:D`)
- `$close-on-key?` (`Bool:D`)
- `$reset-flags?` (`Bool:D`)
- `%operation`

## tmux command

The tmux commands behind `popup-async`.

- [`display-popup`](/en/tmux/latest/manual/display-popup/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_popup_entry`](/en/tmux/latest/reference/c-variable-cmd_display_popup_entry/) (attribute)
- [`cmd_display_popup_exec`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function)
