# tmux_program:send_text/2

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

```
send_text(Program, Text)
-spec send_text(t(), binary()) ->
                   {ok, #{bytes := non_neg_integer()}} |
                   {error, map()}.
```

Send up to 2,000 literal input bytes to the live program. The program's terminal settings govern how it reads the bytes. A second input request returns `program_input_busy` while the first occupies the input slot.

## Parameters

- `Program` (`t()`)
- `Text` (`binary()`)
