On this page
libtmux.Window.respawn
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
-
Respawn the window process via
$ tmux respawn-window.Examples
>>> window = session.new_window(window_name='respawn_test') >>> window.respawn(kill=True, shell='sh')- 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.
-
0 declared, 0 inherited