mirror of
https://github.com/wez/wezterm.git
synced 2024-12-01 00:35:46 +03:00
850fdf40de
refs: #225
736 B
736 B
pane:get_lines_as_text([nlines])
Since: nightly builds only
Returns the textual representation (not including color or other attributes) of the lines of text in the viewport as a string.
If the optional nlines
argument is specified then it is used to determine how
many lines of text should be retrieved. The default (if nlines
is not specified)
is to retrieve the number of lines in the viewport (the height of the pane).
The lines have trailing space removed from each line. The lines will be
joined together in the returned string separated by a \n
character.
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.