# server.interactive.Server.display_popup

- **Module:** server.interactive.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server/interactive.rs#L25
- **Page:** https://libtmux.org/reference/rs/server-interactive-server-display_popup/

```
server.interactive.Server.display_popup(self, client: Option<&Client>, command: impl Into<OsString>) -> Result<(), Error>
```

Show a popup over a client, running a command inside it.

This needs a client with a terminal, so it fails on a server nothing is
attached to.

Unlike [`Self::command_prompt`] and [`Self::display_menu`], this does
not wait for a person -- but it does wait for the command. The popup is
opened with `-E`, so it closes when what runs inside it exits, and this
returns then. A command that does not end holds the call until the
dispatch timeout does.

# Errors

Returns [`Error::ServerMismatch`] when the client belongs to another
server, or an error when no suitable client exists, when tmux refuses
the command, and when the dispatch timeout expires before it exits.
