Send to terminal
nvim_terminal_sendSend input to a Neovim terminal buffer, appending a carriage return by default to submit the line. Use enter=false for raw keys or control characters.
Instructions
Send input to an open terminal buffer. By default a carriage return is appended so the line is submitted; set enter=false to send raw keys (e.g. control characters).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text to send. | |
| bufnr | Yes | Terminal buffer number (from nvim_open_terminal/list). | |
| enter | No | Append a carriage return. Default true. |