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

window.Window.respawn

Rust

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window.rs
Other languages
PythonTypeScriptGoJava.NET C++ Swift
respawn ( mut , command : Option<impl Into<OsString>> , respawn_mode : Respawn ) → 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.

In other ports Restart the command in a window's active pane

0 declared, 0 inherited

Esc

Type to search.