# tmux.RespawnRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_respawn.go#L18
- **Page:** https://libtmux.org/reference/go/tmux-respawnrequest/

RespawnRequest configures restarting a window's or pane's process on tmux 3.2a or later. Its zero value reuses the stored command and directory and requires the target process to be inactive. Nil pointer fields omit their options; nonnil pointers are explicit, including empty strings. There are no mutually exclusive fields. Arguments and environment entries are validated before execution.

Methods read pointer and map values during argument construction; do not
mutate them concurrently.

## Members

- `Command` (attribute) — Command is omitted when nil so tmux reuses the stored command. A nonnil empty string remains an explicit operand.
- `StartDirectory` (attribute) — StartDirectory expands ~ and ~/... for the current user. Nil reuses the stored directory; a nonnil empty string selects the current directory.
- `Environment` (attribute) — Environment is emitted in lexically sorted key order; nil and an empty map both add no environment entries.
- `Kill` (attribute) — Kill terminates an active target process before restarting it.
