Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Swift API

Swift documentation

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Options.swift
Other languages
Python Ruby Lua TypeScript RustGo Java .NET C++
option(_:scope:) ( name : String , scope : OptionScope ) → String?
methodasync [source]
methodasync [source]
option(_:scope:)

The value of one option, or nil if it is not set in that table.

Presence comes from the table listing and the value from show-options -v, because neither answers both portably: the listing quotes a value containing spaces, while -v reports "not set" as exit 0 with empty output on 3.2a and exit 1 on 3.7 — and reading emptiness as absence would erase the difference between an option nobody set and one deliberately set to "".

Raises

Discussed in Options and hooks

In other ports Read one server option
In other ports Read one session option
In other ports Read one window option
In other ports Read one pane option

0 declared, 0 inherited

Esc

Type to search.