mirror of
https://github.com/wezterm/wezterm.git
synced 2026-08-03 08:44:56 +08:00
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:
parent
2a8bdfa603
commit
b2ae5ade79
@ -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)
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user