Server.showGlobalOptions
Read the defaults every session or window inherits.
Source and package
- showGlobalOptions( scope: "session" | "window", options?: Command
Options , ): Promise<ReadonlyMap <string, string>> -
Description#
Most of tmux's options live here rather than on an object: a session that has set nothing reports nothing, while the values actually governing it are these.
history-limitanddefault-shellare both global session options andremain-on-exita global window one; none of the three is readable any other way.Examples#
const defaults = await server.showGlobalOptions("session");defaults.get("default-shell");- Parameters
-
tmux command#
The tmux commands behind showGlobalOptions.
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 defaults every session inherits
| Language | Equivalent |
|---|---|
| Python | no equivalent on Server |
| Rust | no whole-table read; Server.get_global_option reads one |
| Go | no equivalent on Server |
| Java | io |
| C# | no equivalent on Server |
| C++ | libtmux:: |
| Swift | no equivalent on Server |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.