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:
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)
|
||||
```
|
||||
Reference in new issue
Block a user