mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
7d9b842d26
... while also being less to type.
543 B
543 B
tab:get_size()
--8<-- "nightly-only.md"
Returns the overall size of the tab, taking into account all of the contained panes.
The return value is a lua table with the following fields:
rows
- the number of rows (height)cols
- the number of columns (width)pixel_width
- the total width, measured in pixelspixel_height
- the total height, measured in pixelsdpi
- the resolution of the tab.
Note that pixel_width
, pixel_height
and dpi
may be inaccurate when there
is no GUI client associated with the tab.