Read terminal
nvim_terminal_readRead the rendered contents (scrollback and current screen) of a Neovim terminal buffer. Optionally trim trailing blank lines. Useful for capturing terminal output.
Instructions
Read the rendered contents (scrollback + current screen) of a terminal buffer. Trailing blank lines are trimmed by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bufnr | Yes | Terminal buffer number. | |
| stripTrailingBlank | No | Trim trailing blank lines. Default true. |