Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

556 B
Raw Blame

tab:get_size()

{{since('20230320-124340-559cb7b0')}}

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 pixels
  • pixel_height - the total height, measured in pixels
  • dpi - 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.