session.Session.typed_option
- Module
- session
- Declared in
- Session
- Package
- libtmux
- Source
- crates/libtmux/src/session/settings.rs
- Other languages
- Python Ruby Lua 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 session. 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 session option
- Python
libtmux.Session.show_option - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.Session:get_option - TypeScript no single-option read;
Session.showOptionsreturns them all - Go
tmux.Session.RawOption - Java reached through
Session.options, whoseOptions.getreads one - .NET reached through
Session.Options, whoseTmuxOptions.GetAsyncreads one - C++
libtmux::Session::option - Swift
Server.option(_:scope:)
- Python
0 declared, 0 inherited