# libtmux::Pane::respawn

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L691
- **Page:** https://libtmux.org/reference/cxx/libtmux-pane-respawn/

```
libtmux::Pane::respawn(replace_running: bool = false) -> expected< void, CommandFailure >
```

Start the pane's command again.

tmux refuses a pane whose process is still running unless told to kill it, and that refusal is kept rather than smoothed over: replacing a live process is a decision, so `replace_running` has to be asked for.
