libtmux Reference MCP Search
On this page

window.Window.respawn

View as Markdown

Module
window
Declared in
Window
Package
@libtmux/libtmux
Source
packages/libtmux/src/window.ts
respawn ( command : : string , options : : RespawnOptions ) Promise<void>
method [source]
method [source]
respawn

Restart the command running in this window's active pane.

tmux refuses a window that is still running something unless kill says to replace it.

Examples

await window.respawn("sh", { kill: true });

0 declared, 0 inherited

Esc

Type to search.