window.Window.typed_option
- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- crates/libtmux/src/window/settings.rs
- Other languages
- Python TypeScript Go Java .NET C++Swift
-
Read one option, decoded according to what tmux declares about it.
A flag comes back as
OptionValue::Flagand a number asOptionValue::Number, so a caller does not decide for itself thatonmeans one. Everything else, including user options, stays text. The one way to read a single option;OptionValuesays how reads and writes fit together.Nonemeans 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 asNone.Errors
Returns an error when tmux does not recognize the option name.
In other ports Read one window option
- Python
libtmux.Window.show_option - TypeScript no single-option read;
Window.showOptionsreturns them all - Go
tmux.Window.RawOption - Java reached through
Window.options, whoseOptions.getreads one - .NET reached through
Window.Options, whoseTmuxOptions.GetAsyncreads one - C++
libtmux::Window::option - Swift
Server.option(_:scope:)
- Python
0 declared, 0 inherited