# pane.Pane.send_keys

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L558
- **Page:** https://libtmux.org/reference/rs/pane-pane-send_keys/

```
pane.Pane.send_keys(self, keys: impl Into<OsString>) -> Result<(), Error>
```

Send keys to the pane as if typed.

The text is sent literally with tmux's `-l` flag, so key names such as
`C-c` are typed rather than interpreted. Use [`Pane::send_key_names`]
for tmux's key vocabulary.

The text is marked sensitive, so it never reaches `Debug`, an error, or
a tracing span: a pane is where passwords get typed.

# Errors

Returns an error when tmux refuses the command.
