On this page
tmux.Pane.Respawn
- Module
- tmux
- Declared in
- Pane
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_process.go
- 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.
0 declared, 0 inherited