# libtmux::Pane::respawn

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L863
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
