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

window.Window.showOptions

View as Markdown

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

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

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

In other ports Read the options set on a window

Examples

const options = await window.showOptions();
options.get("automatic-rename");
>>> 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?;
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

Esc

Type to search.