Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.showGlobalOptions

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
Python Ruby Lua Rust Go Java .NET C++ Swift
showGlobalOptions ( scope : : "session" | "window" ) → Promise<ReadonlyMap<string, string>>
method [source]
method [source]
showGlobalOptions

Read the defaults every session or window inherits.

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-limit and default-shell are both global session options and remain-on-exit a global window one; none of the three is readable any other way.

Examples

const defaults = await server.showGlobalOptions("session");
defaults.get("default-shell");
In other ports Read the defaults every session inherits
  • Python no equivalent on Server
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • Rust no whole-table read; Server.get_global_option reads one
  • Go no equivalent on Server
  • Java io.github.libtmux.Server.Server.globalOptions
  • .NET no equivalent on Server
  • C++ libtmux::Server::global_options
  • Swift no equivalent on Server

0 declared, 0 inherited

Esc

Type to search.