# tmuxtest.TypeAndWait

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/tmuxtest/screen.go#L129
- **Page:** https://libtmux.org/en/go/latest/reference/tmuxtest-typeandwait/

```
tmuxtest.TypeAndWait(ctx: context.Context, t: testing.TB, pane: tmux.Pane, command: string)
```

TypeAndWait sends command to the pane and blocks until it has finished.

It appends and waits for a unique marker whether the command succeeds or
fails. It does not return the command's exit status.
