Window.respawn
Respawn the window process via $ tmux respawn-window.
Source and package
-
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.
-
tmux command
respawn-windowIn other ports Restart the command in a window's active pane
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby
- Lua
- TypeScript
- Rust
- Go
- Java
- C#
- C++ no equivalent on
Window - Swift no equivalent on
Window - Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.