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-java latest

Options.setIfAbsent

Sets one option only if this scope does not already set it.

Source and package
Qualified name
io.github.libtmux.Options.setIfAbsent
Package
io.github.libtmux
Declared in
Options
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Options.java

Description#

tmux reports the already-set case as an error, which it is not: declining to overwrite is the whole point of asking. The answer comes back as a value instead.

Parameters
Returns

whether the value was taken, false when this scope already set the option

tmux command#

The tmux commands behind setIfAbsent.

tmux C API#

The C declarations in tmux that implement these commands.

tmux options#

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

Esc

Type to search.

Reference previewOpen reference