Window.show_options
Return all options for the target.
Source and package
- show_options ( self, global_: bool = False, scope: Option
Scope | _DefaultOption | None = DEFAULT_OPTION_SCOPE, include_hooks: bool | None = None, include_inherited: bool | None = None, quiet: bool | None = None, ) ExplodedScope Complex Untyped Options Dict -
Inherited from
libtmux.options.OptionsMixinExamples#
>>> options = server.show_options()>>> isinstance(options, dict)True>>> 'buffer-limit' in optionsTrue- Parameters
-
-
global_(bool) # – Pass-gflag for global options, default False. -
scope(OptionScope | _DefaultOption | None) # – Option scope (Server/Session/Window/Pane), defaults to object's scope.Scope -
include_hooks(bool | None) # – Include hook options (-Hflag). -
include_inherited(bool | None) # – Include inherited options (-Aflag). -
quiet(bool | None) # – Suppress errors silently (-qflag). added 0.56
-
- Returns
-
ExplodedComplexUntypedOptionsDict Dictionary with all options, arrays exploded and values converted.
- Raises
tmux command#
The tmux commands behind show_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 a window
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux Pass the corresponding explicit Options scope; captured tables preserve their source and inheritance policy. |
| 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#.