libtmux.Window.show_options
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/options.py
- Other languages
- Ruby Lua TypeScriptRustGoJava.NETC++Swift
- show_options ( self , global_ : bool = False , scope : OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE , include_hooks : bool | None = None , include_inherited : bool | None = None , quiet : bool | None = None ) ExplodedComplexUntypedOptionsDict
-
Inherited from
libtmux.options.OptionsMixinReturn all options for the target.
- Parameters
-
-
global_ ( bool ) – Pass
-gflag for global options, default False. -
scope ( OptionScope | _DefaultOptionScope | None ) – Option scope (Server/Session/Window/Pane), defaults to object's 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
In other ports Read the options set on a window
- Ruby
LibTmux::Window#options - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
window.Window.showOptions - Rust
window.Window.options - Go
tmux.Window.Options - Java
io.github.libtmux.Window.Window.options - .NET
LibTmux.Window.Options - C++
libtmux::Window::options - Swift
Server.options(_:)
Examples
>>> options = server.show_options()>>> isinstance(options, dict)True>>> 'buffer-limit' in optionsTrueconst options = await window.showOptions();options.get("automatic-rename");let guard = libtmux::test::TestServer::new().await?;let session = guard.server().new_session("opts").await?;let window = session.new_window("w").await?;
window.set_option("main-pane-width", "99").await?;let options = window.options().await?;assert!(options.contains_key("main-pane-width"));
guard.shutdown().await?;0 declared, 0 inherited