# tmuxtest.RunInPane

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

```
tmuxtest.RunInPane(ctx: context.Context, t: testing.TB, command: string) -> tmux.Pane
```

RunInPane creates an isolated pane, waits for its startup-file-free POSIX shell, and submits command with [Type]. It does not wait for command to start or finish. Resources belong to t; setup failures call [testing.TB.Fatal]. Use [NewServerWithOptions] for custom topology or configuration.
