# tmuxtest.WaitForScreen

- **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#L74
- **Page:** https://libtmux.org/reference/go/tmuxtest-waitforscreen/

```
tmuxtest.WaitForScreen(ctx: context.Context, t: testing.TB, pane: tmux.Pane, want: string, match: func(screen []string) bool)
```

WaitForScreen blocks until the pane's screen satisfies match.

want is the noun phrase used in the failure message.

match receives a newly read screen and must not retain it.
