# libtmux::Pane::expand

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L878
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-pane-expand/

```
libtmux::Pane::expand(format: std::string_view) -> expected< std::string, CommandFailure >
```

Ask tmux to expand a format against this pane.

`#{pane_current_command}` and `#{pane_current_path}` are the two most callers reach for, and neither is a field this class carries: both change under a value that stays still.

Guarded like the session and window forms, because tmux answers a pane that has gone with a blank and a zero exit status.
