Pane.respawn
Start the pane's command again.
Source and package
- Qualified name
-
libtmux::Pane:: respawn - Namespace
- libtmux
- Declared in
Pane- Package
- libtmux-cxx
- Source
- include/libtmux/entities.hpp
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC#Swift Kotlin Scala OCaml F# Clojure
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] expected<void, CommandFailure > respawn(bool replace_running = false) const;[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] expected<void, CommandFailure > respawn(RespawnOptions options) const; -
Description#
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_runninghas to be asked for.- Parameters
-
-
replace_running(bool) # forrespawn(replace_running) -
options(RespawnOptions ) # forrespawn(options)
-
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 |
|---|---|
| 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 | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| 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#.