Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

View as Markdown

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)
method [source]
method [source]
Respawn

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 RespawnRequest for zero-value, directory, environment, and Kill behavior.

Respawn refreshes by PaneID, so the returned canonical Pane may 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 redacted CommandError ; a nonzero exit without stderr is followed by refresh.

In other ports Restart a pane's command

0 declared, 0 inherited

Esc

Type to search.