# io.github.libtmux.TextWait

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/5f88402151ff08fc0390dd438b90963692ec3fe4/libtmux/src/main/java/io/github/libtmux/TextWait.java#L19
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-textwait-textwait/

```
io.github.libtmux.TextWait(outcome: TextOutcome, output: List<String>)
```

How a wait for text on a pane ended, and what the pane had shown by then.

{@link Pane#awaitText} answers with the outcome alone. This carries the screen as well, which a
wait that ends because the pane or the server went away needs most: the output so far is all there
will ever be.

## Parameters

- `outcome` (`TextOutcome`): why the wait ended
- `output` (`List<String>`): the rows of the pane at its last successful read, wrapped rows rejoined, the echo of what this library typed removed and trailing blank rows dropped; empty when the pane was gone before the first read

## Members

### Other members

- [`outcome`](/en/java/latest/reference/io-github-libtmux-textwait-textwait-outcome/) (method): why the wait ended
- [`output`](/en/java/latest/reference/io-github-libtmux-textwait-textwait-output/) (method): the rows of the pane at its last successful read, wrapped rows rejoined, the echo of what this library typed removed and trailing blank rows dropped; empty when the pane was gone before the first read
