- Module
- tmux
- Declared in
- Pane
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_process.go
- Other languages
- PythonRubyLuaTypeScriptRustJava.NETC++Swift
- Respawn ( ctx : context.Context , request : RespawnRequest ) (Pane, error)
-
Respawn restarts the process in the receiver's exact linked pane on tmux 3.2a or newer. Command, when present, is passed as one tmux shell-command operand; Go neither executes it locally nor adds inner-shell quoting. Final semicolon protection applies only to tmux's outer command parser. See
RespawnRequestfor zero-value, directory, environment, and Kill behavior.Respawn refreshes by PaneID, so the returned canonical
Panemay carry a different linked-session or winlink context. The process may be restarted before refresh fails; in that case Respawn returns the original receiver and the refresh error. Earlier failures return zero. Completed stderr produces a redactedCommandError; a nonzero exit without stderr is followed by refresh.In other ports Restart a pane's command
- Python
libtmux.Pane.respawn - Ruby
LibTmux::Pane#respawn - Lua
libtmux.Pane:respawn - TypeScript
pane.Pane.respawn - Rust
pane.Pane.respawn - Java
io.github.libtmux.Pane.Pane.respawn - .NET
LibTmux.Pane.RespawnAsync - C++
libtmux::Pane::respawn - Swift
Server.respawn(_:running:killingExisting:)
- Python
0 declared, 0 inherited