# io.github.libtmux.Window.Window.displayPopup

- **Module:** io.github.libtmux.Window.Window
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Window.java#L341
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-window-window-displaypopup/

```
io.github.libtmux.Window.Window.displayPopup(shellCommand: String) -> void
```

Shows a popup over this window, running a command in it.

tmux draws a popup for a client, so this needs one attached; on a detached session tmux
reports that it has no current client.

tmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does
not prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you
mean it to be expanded.
