tmuxtmuxCLI manual

Choose documentation 1

3.2a

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux commands

tmux show-options

command tmux 3.2a

Show the pane options (or a single option if option is provided) with -p, the window options with -w, the server options with -s, otherwise the session options.

Syntax

tmux show-options [-AgHpqsvw] [-t target-pane] [option]

Alias: show.

Behavior

Show the pane options (or a single option if option is provided) with -p, the window options with -w, the server options with -s, otherwise the session options. If the option is not a user option, -w or -s may be unnecessary - tmux will infer the type from the option name, assuming -w for pane options. Global session or window options are listed if -g is used. -v shows only the option value, not the name. If -q is set, no error will be returned if option is unset. -H includes hooks (omitted by default). -A includes options inherited from a parent set of options, such options are marked with an asterisk.

Guides

C implementation

Internal declarations in tmux 3.2a:

Use from a library

These methods send show-options. Each describes its own defaults, errors and execution model.

Library methods that send tmux show-options, by scope
Language Methods
Python OptionsMixin.show_option OptionsMixin.show_options Pane.show_option Pane.show_options Server.show_option Server.show_options Session.show_option Session.show_options Window.show_option Window.show_options Window.show_window_option Window.show_window_options
Ruby Options#get Options#list
Lua Pane:get_hook Pane:get_option Pane:list_hooks Pane:list_options Server:get_hook Server:get_option Server:list_hooks Server:list_options Session:get_hook Session:get_option Session:list_hooks Session:list_options Window:get_hook Window:get_option Window:list_hooks Window:list_options
PowerShell Get-TmuxOption
Julia get_hook get_option
Erlang get_many/3 get/3 get/3
Haskell readOption
TypeScript Pane.showOptions Pane.showResolvedOptions Server.showGlobalOptions Server.showOptions Server.showResolvedOptions Session.showOptions Session.showResolvedOptions Window.showOptions Window.showResolvedOptions
Java Options.all Options.get
Clojure options!
Kotlin Options.all Options.get
Scala Options.all Options.get
C# TmuxOptions.GetAllAsync TmuxOptions.GetAsync
F# get
C++ Pane::option Pane::options Server::global_options Server::options Server::server_options Session::option Session::options Window::option Window::options
Swift Server.options(_:) Server.resolvedOption(_:scope:)
OCaml capture_options capture_options read_hook read_hook read_option read_option
Perl Async::Server::get_option LibTmux::Server::get_option
Raku Options.entries Options.get Options.get-raw

No method in Elixir, Common Lisp, Rust, or Go sends this command itself.

tmux sources and license

Syntax comes from tmux 3.2a list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.2a manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference