# libtmux.Pane.send_prefix

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/pane.py#L2212
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-pane-send_prefix/

tmux command: [`send-prefix`](/en/tmux/latest/manual/send-prefix/)

```
libtmux.Pane.send_prefix(
    self, secondary: bool | None = None
) -> None
```

Send the prefix key to the pane via [`$ tmux send-prefix`](/en/tmux/latest/manual/send-prefix/).

## Examples

```python
>>> pane.send_prefix()
```

## Parameters

- `secondary` (`bool | None`): Send the secondary prefix key (``-2`` flag).

## In other ports

### Send the configured prefix key to a pane

- TypeScript: [`pane.Pane.sendPrefix`](/en/ts/latest/reference/pane-pane-sendprefix/) (method)
- Rust: [`pane.Pane.send_prefix`](/en/rs/latest/reference/pane-pane-send_prefix/) (method)
- Go: [`tmux.Pane.SendPrefix`](/en/go/latest/reference/tmux-pane-sendprefix/) (method)
- C#: [`LibTmux.Pane.SendPrefixAsync`](/en/csharp/latest/reference/libtmux-pane-sendprefixasync/) (method)
