Window.respawn
Restart the window's command in place.
Source and package
-
Description#
Passing
Nonereruns whatever the window started with. Every pane in the window is replaced by the one the command runs in, which is what makes this different from respawning a pane:crate::Pane::respawn()restarts one pane and leaves its neighbours alone.Errors
Returns an error when a pane is still running and
kill()is not set.
tmux command#
The tmux commands behind respawn.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Restart the command in a window's active pane
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | no equivalent on Window |
| Swift | no equivalent on Window |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| 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#.