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

window.Window.typed_option

Rust

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window/settings.rs
Other languages
Python TypeScript Go Java .NET C++Swift
typed_option ( self , name : &str ) → Result<Option<OptionValue>, Error>
method [source]
method [source]
typed_option

Read one option, decoded according to what tmux declares about it.

A flag comes back as OptionValue::Flag and a number as OptionValue::Number , so a caller does not decide for itself that on means one. Everything else, including user options, stays text. The one way to read a single option; OptionValue says how reads and writes fit together.

None means the option holds nothing at this window. A user option, whose name begins with @, exists only while it is set, and a built-in one always exists, so both report an unset option as None.

Errors

Returns an error when tmux does not recognize the option name.

In other ports Read one window option

0 declared, 0 inherited

Esc

Type to search.