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

OptionKey

A tmux option and the Java type its value reads as.

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

Description#

Declared by the caller rather than catalogued here. tmux has hundreds of options, adds them between releases and changes a few of their types, so a closed catalogue would be wrong somewhere on every release it did not track. A key says how to read one option; the name-and-string methods on Options remain for anything else.

The constants are the ones whose type is the same on every supported release, checked against tmux's own option table across the supported range. status is not among the flags for that reason: tmux reads it as a choice of off, on and a line count.

Examples#

session.options().set(OptionKey.HISTORY_LIMIT, 50_000);
int kept = session.options().get(OptionKey.HISTORY_LIMIT).orElseThrow(); // → 50000
OptionKey<Boolean> bell = OptionKey.flag("visual-bell");
Type parameters
  • T #

    what the value reads as

Members13#

Esc

Type to search.

Reference previewOpen reference