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.

method libtmux-go latest

SessionOptionValues.DetachOnDestroy

DetachOnDestroy returns materialized "detach-on-destroy" as OptionValue with value type OptionValueDetachOnDestroy from session option values; it does not query tmux. Available as CHOICE (choices: "off", "on", "no-detached"); CHOICE since tmux 3.4 (choices: "off", "on", "no-detached", "previous", "next"); set it with Session.SetDetachOnDestroy or GlobalSessionScope.SetDetachOnDestroy.

Source and package
Qualified name
tmux.SessionOptionValues.DetachOnDestroy
Package
tmux
Declared in
SessionOptionValues
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/option_generated.go
func ( v SessionOptionValues, ) DetachOnDestroy() OptionValue[DetachOnDestroy]

tmux options#

Settings for the server, sessions, windows and panes, with their types, defaults and allowed values.

Esc

Type to search.

Reference previewOpen reference