# pane.Pane.display

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L782
- **Page:** https://libtmux.org/reference/rs/pane-pane-display/

```
pane.Pane.display(self, message: &str) -> Result<(), Error>
```

Show a message on the clients viewing this pane's window.

The showing half of tmux's `display-message`. Nothing is returned
because nothing is read: use [`Self::format`] to get text back.
Succeeds when nobody is watching, having shown it to nobody.
Like [`Self::format`], this interprets the message as a tmux format;
command and recursive formats can run shell commands.

# Errors

Returns an error when tmux cannot be reached or refuses the message.
