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

session.Session.showOptions

View as Markdown

Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
PythonRuby Lua RustGoJava.NETC++Swift
showOptions ( ) → Promise<ReadonlyMap<string, string>>
method [source]
method [source]
showOptions

Every option set on this session itself, not the ones it inherits.

A fresh session usually has none, so an empty map here means nothing was set on this session — not that the option has no value. showResolvedOptions answers what actually governs it.

In other ports Read the options set on a session

Examples

const options = await session.showOptions();
options.get("status");
>>> options = server.show_options()
>>> isinstance(options, dict)
True
>>> 'buffer-limit' in options
True
let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("opts").await?;
session.set_option("status-left-length", "30").await?;
let options = session.options().await?;
assert!(options.contains_key("status-left-length"));
guard.shutdown().await?;

0 declared, 0 inherited

Esc

Type to search.