# Libtmux_eio.Client.send_text

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L266
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-client-send_text/

```
val send_text :
  t -> Libtmux.Pane.target -> text:string -> (unit, Libtmux.Error.t) result
```

Literal bytes, without an implicit Enter. NUL is rejected at admission.

## Parameters

- `arg1` (`t`)
- `arg2` (`Libtmux.Pane.target`)
- `text` (`string`)

## tmux command

The tmux commands behind `send_text`.

- [`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)
