# tmux.Pane.SendPrefix

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_input.go#L340
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-pane-sendprefix/

```
tmux.Pane.SendPrefix(ctx: context.Context, key: PrefixKey) -> error
```

SendPrefix sends a tmux prefix key to the receiver's exact linked pane. Unsupported PrefixKey values fail before execution. A completed command produces a [CommandError] only when tmux writes stderr; the library-created error retains only the exit code. Nonzero exits without stderr are ignored; transport errors are delivery-ambiguous.
