libtmux Reference MCP Search
On this page

window.Window.respawn

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window.rs
respawn ( mut , command : Option<impl Into<OsString>> , kill : bool ) Result<&mut Self, Error>
method [source]
method [source]
respawn

Restart the window's command in place.

Passing None reruns 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.

0 declared, 0 inherited

Esc

Type to search.