On this page
tmux.RespawnRequest
- Module
- tmux
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_respawn.go
-
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.
4 declared, 0 inherited
Members
- Command attribute Command is omitted when nil so tmux reuses the stored command. A nonnil empty string remains an explicit operand.
- 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.
- StartDirectory attribute StartDirectory expands ~ and ~/... for the current user. Nil reuses the stored directory; a nonnil empty string selects the current directory.