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.

class libtmux-java latest

Options

The tmux options at one scope.

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

Description#

tmux keeps options on the server, on a session, on a window and on a pane, and the same option name can exist at more than one of them. A scope is therefore chosen when the view is obtained, not passed to every call, so a caller cannot read one scope and write another.

Array options keep the subscript tmux prints — command-alias[0] — because that is what addresses the individual entry when setting it back.

Every read asks the daemon its version in the same tmux invocation as the values, since how a value is printed depends on that version: tmux 3.4 and 3.5 print a carriage return and a literal \r alike under -v, so on those two the escaped listing is decoded instead.

Members13#

  • all method Every option set at this scope, in tmux's order. Inherited values are not listed.
  • append method Adds to the end of a string option, rather than replacing it.
  • effective method Every option tmux lists at this scope, including inherited built-in values.
  • get method The value in effect at this scope, inherited from a parent scope when this one does not set it.
  • global method
  • pane method
  • server method
  • session method
  • set method As String), written the way tmux reads the key's type.
  • setExpanded method Sets one option to what a tmux format comes to, rather than to the format itself.
  • setIfAbsent method Sets one option only if this scope does not already set it.
  • unset method Removes one option at this scope, so it falls back to whatever it inherits.
  • window method

tmux options#

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

Guides#

Pages that discuss Options.

Esc

Type to search.

Reference previewOpen reference