RespawnRequest
RespawnRequest configures restarting a window's or pane's process on every supported tmux. 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.
Source and package
- Qualified name
-
tmux.Respawn Request - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_respawn.go
-
Description#
Methods read pointer and map values during argument construction; do not mutate them concurrently.
Fields4#
| Name | Type | Description |
|---|---|---|
| Command | *string | Command is omitted when nil so tmux reuses the stored command. A nonnil empty string remains an explicit operand. |
| Environment | map[string]string | Environment is emitted in lexically sorted key order; nil and an empty map both add no environment entries. |
| Kill | bool | Kill terminates an active target process before restarting it. |
| StartDirectory | *string | StartDirectory expands ~ and ~/... for the current user. Nil reuses the stored directory; a nonnil empty string selects the current directory. A directory that does not exist is not an error: tmux starts the process in the home directory instead, or in / without one. |