# LibTmux.Program.sendProgramInput

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/internal/LibTmux/Internal/Program.hs#L579
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-program-v-sendprograminput/

```haskell
sendProgramInput :: Program -> ByteString -> IO ()
```

Signature types: [`Program`](/en/haskell/latest/reference/libtmux-program-t-program/), [`ByteString`](https://hackage.haskell.org/package/bytestring-0.12.2.0/docs/Data-ByteString.html#t:ByteString), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

Send literal bytes to the real application PTY. A call admits at most
 1024 bytes, including NUL; terminal line discipline still applies. Sending
 bytes is not evidence that the application consumed them.

## Referenced declarations

- [`LibTmux.Program.Program`](/en/haskell/latest/reference/libtmux-program-t-program/) (data type)

## tmux command

The tmux commands behind `sendProgramInput`.

- [`send-keys`](/en/tmux/latest/manual/send-keys/) (when input is nonempty)

## 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)

## Guides

Pages that discuss `sendProgramInput`.

- [Run terminal applications](/en/haskell/latest/guides/programs/)
