# tmux.Pane.SendKeys

- **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#L139
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-pane-sendkeys/

```
tmux.Pane.SendKeys(ctx: context.Context, request: SendKeysRequest) -> error
```

SendKeys invokes tmux send-keys with the receiver's exact linked session-window-pane target. This is tmux key input, not shell execution: Literal only changes tmux key parsing, and any delivered text may still be interpreted by the pane's application. KeyName routes through a client's key table instead of delivering to the pane.

KeyName and TargetClient require tmux 3.4 and follow [UnsupportedPolicy].

A completed nonzero exit or stderr, from either the Command send or the
separate Enter, becomes a redacted [CommandError]: Command may carry a
caller's secret, so only tmux's exit code is retained. Transport and
context errors are delivery-ambiguous, including between Command and Enter.
