Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

window.Respawn

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
window
Package
libtmux
Source
crates/libtmux/src/window.rs
enum window.Respawn
enumoverload [source]
enumoverload [source]
enum window.Respawn

What to do about a process still running where one is being respawned.

tmux refuses respawn-pane and respawn-window outright while the old command is alive unless -k says 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.
Esc

Type to search.