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