Pane.respawn
Respawn the pane process via $ tmux respawn-pane.
Source and package
-
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.
-
tmux command#
The tmux commands behind respawn.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Restart a pane's command
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.