libtmux.Window.respawn
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
- Other languages
- RubyLuaTypeScriptRustGoJava.NET C++ Swift
-
Respawn the window process via
$ tmux respawn-window.- Parameters
-
-
shell ( str | None ) – Shell command to run in the respawned window.
-
start_directory ( StrPath | None ) – Working directory for the respawned window (
-cflag). -
environment ( dict[str, str] | None ) – Environment variables (
-eflag). -
kill ( bool | None ) – Kill the current process before respawning (
-kflag). Required if the window is still active.
-
In other ports Restart the command in a window's active pane
- Ruby
LibTmux::Window#respawn - Lua
libtmux.Window:respawn - TypeScript
window.Window.respawn - Rust
window.Window.respawn - Go
tmux.Window.Respawn - Java
io.github.libtmux.Window.Window.respawn - .NET
LibTmux.Window.RespawnAsync - C++ no equivalent on
Window - Swift no equivalent on
Window
Examples
>>> window = session.new_window(window_name='respawn_test')>>> window.respawn(kill=True, shell='sh')await window.respawn("sh", { kill: true });0 declared, 0 inherited