Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-ocaml latest

Client.capture_options

Acquire one bounded option table, excluding hooks. The default includes only local entries. Inherited table enumeration includes built-ins; inherited user options require read_option with their explicit name. Built-in descriptors cover every supported release from tmux 3.3a through 3.8; other versions return Libtmux.Error.Unsupported.

Source and package
Qualified name
Libtmux_unix.Client.capture_options
Module
Libtmux_unix
Declared in
Client
Package
libtmux-unix
Source
unix/libtmux_unix.mli
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua TypeScriptRustGoJavaC#C++Swift Kotlin Scala F# Clojure
val capture_options : ?cancel:Cancellation.t -> ?include_inherited:bool -> t -> Libtmux.Options.scope -> (Libtmux.Options.t, Libtmux.Error.t) result

Public owner: Libtmux_unix

tmux command#

The tmux commands behind capture_options.

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.

In other ports#

Read the options set on the server

Equivalents of Read the options set on the server in other languages
Language Equivalent
Python libtmux.Server.show_options
Ruby LibTmux::Server#options
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript server.Server.showOptions
Rust server.Server.options
Go tmux.Server.Options
Java io.github.libtmux.Server.options
C# LibTmux.Server.Options
C++ libtmux::Server::options
Swift Server.options(_:)
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Read the options set on a session

Equivalents of Read the options set on a session in other languages
Language Equivalent
Python libtmux.Session.show_options
Ruby LibTmux::Session#options
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript session.Session.showOptions
Rust session.Session.options
Go tmux.Session.Options
Java io.github.libtmux.Session.options
C# LibTmux.Session.Options
C++ libtmux::Session::options
Swift Server.options(_:)
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Read the options set on a window

Equivalents of Read the options set on a window in other languages
Language Equivalent
Python libtmux.Window.show_options
Ruby LibTmux::Window#options
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.showOptions
Rust window.Window.options
Go tmux.Window.Options
Java io.github.libtmux.Window.options
C# LibTmux.Window.Options
C++ libtmux::Window::options
Swift Server.options(_:)
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Read the options set on a pane

Equivalents of Read the options set on a pane in other languages
Language Equivalent
Python libtmux.Pane.show_options
Ruby LibTmux::Pane#options
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.Pane.showOptions
Rust pane.Pane.options
Go tmux.Pane.Options
Java io.github.libtmux.Pane.options
C# LibTmux.Pane.Options
C++ libtmux::Pane::options
Swift Server.options(_:)
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference