On this page
libtmux.Pane.respawn
- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux
- Source
- src/libtmux/pane.py
-
Respawn the pane process via
$ tmux respawn-pane.Examples
>>> pane = window.split(shell='sleep 1m') >>> pane.respawn(kill=True, shell='sh')- Parameters
-
-
shell ( str | None ) – Shell command to run in the respawned pane.
-
start_directory ( StrPath | None ) – Working directory for the respawned pane (
-cflag). -
environment ( dict[str, str] | None ) – Environment variables (
-eflag). -
kill ( bool | None ) – Kill the current process before respawning (
-kflag). Required if the pane is still active.
-
0 declared, 0 inherited