# tmux_pane:wait_for_text/3

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/38478dff54579a4f408005d0265031abdf3a880a/apps/libtmux_erlang/src/tmux_pane.erl#L781
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_pane-wait_for_text-3/

```
wait_for_text(Pane, Needle, Options)
-spec wait_for_text(tmux_model:pane(),
                    binary(),
                    tmux_pane_text:options()) ->
                       tmux_pane_text:result().
```

Wait for literal bytes on a live registered pane. See `tmux_pane_text:start/3` for limits and cancellation.

## Parameters

- `Pane` (`tmux_model:pane()`)
- `Needle` (`binary()`)
- `Options` (`tmux_pane_text:options()`)

## Guides

Pages that discuss `wait_for_text/3`.

- [Owned operations](/en/erlang/latest/guides/operations/)
