# LibTmux.Option.set/5

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

```
set(server, target, key, value, options \\ [])
@spec set(LibTmux.Server.t(), target(), key(), binary(), [
        timeout_option()
      ]) ::
        {:ok, LibTmux.Transport.OneShot.result()}
        | {:error, LibTmux.Error.t()}
```

Sets one option value, returning native command acknowledgement.

Values are literal NUL-free bytes. tmux interprets each value using the
option's type. Pass an indexed key for a built-in array option.

## Parameters

- `server` (`LibTmux.Server.t()`)
- `target` (`target()`)
- `key` (`key()`)
- `value` (`binary()`)
- `options` (`[timeout_option()]`)
  Default: `[]`.
