# tmux_program:result/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/38478dff54579a4f408005d0265031abdf3a880a/apps/libtmux_erlang/src/tmux_program.erl#L38
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_program-result-0/

```
-type result() :: {ok, capture()} | {error, map()}.
```

A completed capture or a structured failure. A nonzero exit can have a complete capture.
