window:get_dimensions()
¶
Since: Version 20210314-114017-04b7cedd
The functionality described in this section requires version 20210314-114017-04b7cedd of wezterm, or a more recent version.
Returns a Lua table representing the dimensions for the Window.
The table has the following fields:
pixel_width
: the width of the window in pixelspixel_height
: the height of the window in pixelsdpi
: The DPI of the screen the window in onis_full_screen
: whether the window is in full screen mode