# tmux_pane:send_text/2

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_pane.erl#L388
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_pane-send_text-2/

```
send_text/2
-spec send_text(tmux_model:pane(), binary()) ->
                   {ok, map()} | {error, map()}.
```

Send at most 2,000 literal bytes as hexadecimal tmux keys. Adds no Enter key and does not invoke a shell. Performs I/O in one command; oversized input is rejected before partial submission. Completion does not prove that a terminal program processed the input.

## Parameters

- `Pane` (`tmux_model:pane()`)
- `Bytes` (`binary()`)

## tmux command

The tmux commands behind `send_text/2`.

- [`send-keys`](/en/tmux/latest/manual/send-keys/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_send_keys_entry`](/en/tmux/latest/reference/c-variable-cmd_send_keys_entry/) (attribute)
- [`cmd_send_keys_exec`](/en/tmux/latest/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function)
