# LibTmux.Option

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/option.ex#L1
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-option/

Sets and reads tmux options through a one-shot server descriptor.

Choose the server, a global option set or an exact session, window or
pane reference. Built-in names, aliases, scopes and array keys use the
connected daemon's table in `LibTmux.Settings`. A targeted command has
the same incarnation check and check/use race as other one-shot actions.
Keep the native profile and option commands unaliased for the operation.

## Members

### Other members

- [`get_option/0`](/en/elixir/pr-173/reference/libtmux-option-get_option-0/) (typealias): Read locally, follow inheritance, or read the value from the parent.
- [`get/4`](/en/elixir/pr-173/reference/libtmux-option-get-4/) (function): Reads one printed tmux value or returns `:unset`.
- [`key/0`](/en/elixir/pr-173/reference/libtmux-option-key-0/) (typealias): An exact option name, or one array entry at the given index.
- [`set/5`](/en/elixir/pr-173/reference/libtmux-option-set-5/) (function): Sets one option value, returning native command acknowledgement.
- [`target/0`](/en/elixir/pr-173/reference/libtmux-option-target-0/) (typealias): The server, a global option set or an exact observed reference.
- [`timeout_option/0`](/en/elixir/pr-173/reference/libtmux-option-timeout_option-0/) (typealias): One budget for identity, metadata selection and the native command.
