# tmuxtest.Screen

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/tmuxtest/screen.go#L33
- **Page:** https://libtmux.org/reference/go/tmuxtest-screen/

```
tmuxtest.Screen(ctx: context.Context, t: testing.TB, pane: tmux.Pane) -> []string
```

Screen returns the pane's visible lines, top to bottom, with tmux's trailing blank lines removed.

Scrolled-out output is excluded. Use [tmux.Pane.Capture] with
[tmux.CaptureBoundary] to read scrollback.

Read failures call [testing.TB.Fatal].
