# LibTmux.Capture.option/0

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/capture.ex#L23
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-capture-option-0/

```
@type option() ::
        {:timeout, pos_integer()}
        | {:deadline, LibTmux.Deadline.t()}
        | {:attempts, 1..3}
        | {:max_entities
           | :max_commands
           | :max_bytes
           | :max_response_bytes, pos_integer()}
```

Capture-wide budgets shared by all attempts and reads.

Each read uses the smaller of remaining `max_bytes` and `max_response_bytes`.
That effective ceiling must fit OneShot's 16 MiB stdout limit. The shared
deadline must have at most 600,000 ms remaining when OneShot validates a read.
Invalid combinations raise `ArgumentError` before that command executes.
