Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

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.RespawnRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_respawn.go
struct tmux.RespawnRequest

Description#

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

Fields4#

RespawnRequest fields
NameTypeDescription
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.
Esc

Type to search.

Reference previewOpen reference