docs: show how to get whole scrollback in get_xxx_as_text

Folks often ask how to do this. Pre-empt the question.
This commit is contained in:
Wez Furlong committed 2024-01-27 11:05:43 -07:00
1 parent 2a8bdfa603
commit b2ae5ade79
2 files changed
+9

No files matched your search

@@ -19,3 +19,8 @@ Trailing blank lines are stripped, which may result in fewer lines being
returned than you might expect if the pane only had a couple of lines
of output.
To obtain the entire scrollback, you can do something like this:
```lua
pane:get_lines_as_text(pane:get_dimensions().scrollback_rows)
```
@@ -24,4 +24,8 @@ Trailing blank lines are stripped, which may result in fewer lines being
returned than you might expect if the pane only had a couple of lines
of output.
To obtain the entire scrollback, you can do something like this:
```lua
pane:get_logical_lines_as_text(pane:get_dimensions().scrollback_rows)
```