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

window.Window.respawn

TypeScript

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PythonRubyLuaRustGoJava.NET C++ Swift
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.

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

Examples

await window.respawn("sh", { kill: true });
>>> window = session.new_window(window_name='respawn_test')
>>> window.respawn(kill=True, shell='sh')

0 declared, 0 inherited

Esc

Type to search.