window.Respawn
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- window
- Package
- libtmux
- Source
- crates/libtmux/src/window.rs
-
What to do about a process still running where one is being respawned.
tmux refuses
respawn-paneandrespawn-windowoutright while the old command is alive unless-ksays otherwise, so the choice is not a detail -- it decides whether a live process is killed.Examples
use libtmux::Respawn;// Rerun the pane's own command, killing it first if it is still running.pane.respawn(None::<&str>, Respawn::Replacing).await?;
2 declared, 0 inherited
Members
- OnlyIfDead constant Refuse unless the pane or window is already dead.
- Replacing constant Kill whatever is running first. tmux's
-k.