2020-10-10 09:22:52 +03:00
|
|
|
# `pane:get_dimensions()`
|
|
|
|
|
2023-03-21 08:01:24 +03:00
|
|
|
{{since('20201031-154415-9614e117')}}
|
2020-10-10 09:22:52 +03:00
|
|
|
|
|
|
|
Returns a lua representation of the `RenderableDimensions` struct
|
|
|
|
that identifies the dimensions and position of the viewport as
|
|
|
|
well as the scrollback for the pane.
|
|
|
|
|
|
|
|
It has the following fields:
|
|
|
|
|
|
|
|
* `cols` the number of columns
|
|
|
|
* `viewport_rows` the number of vertical cells in the visible portion
|
|
|
|
of the window
|
|
|
|
* `scrollback_rows` the total number of lines in the scrollback and viewport
|
|
|
|
* `physical_top` the top of the physical non-scrollback screen expressed as
|
|
|
|
a stable index.
|
|
|
|
* `scrollback_top` the top of the scrollback; the earliest row remembered
|
|
|
|
by wezterm.
|
|
|
|
|