pane.Pane.typed_option
- Module
- pane
- Declared in
- Pane
- Package
- libtmux
- Source
- crates/libtmux/src/pane/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 pane. 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.
Discussed in Options and hooks
In other ports Read one pane option
- Python
libtmux.Pane.show_option - TypeScript no single-option read;
Pane.showOptionsreturns them all - Go
tmux.Pane.RawOption - Java reached through
Pane.options, whoseOptions.getreads one - .NET reached through
Pane.Options, whoseTmuxOptions.GetAsyncreads one - C++
libtmux::Pane::option - Swift
Server.option(_:scope:)
- Python
0 declared, 0 inherited