# main-pane-height

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/

> Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts.

option tmux3.7c

Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts.

* Scope

  window

* Type

  Text

* Default

  `24`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-w main-pane-height value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-w main-pane-height`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/#description)

Set the width or height of the main (left or top) pane in the `main-horizontal`, `main-horizontal-mirrored`, `main-vertical`, or `main-vertical-mirrored` layouts. If suffixed by ‘`%`’, this is a percentage of the window size.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/main-pane-height/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/#source)

* Defined in

  [`options-table.c:1241`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1241)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.7c/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-main-pane-height)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-height/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.MAIN_PANE_HEIGHT`](https://libtmux.org/en/rs/latest/reference/options-generated-main_pane_height/)

* Go

  [`tmux.GlobalWindowScope.SetMainPaneHeight`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-setmainpaneheight/), [`tmux.Window.SetMainPaneHeight`](https://libtmux.org/en/go/latest/reference/tmux-window-setmainpaneheight/), [`tmux.WindowOptionValues.MainPaneHeight`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-mainpaneheight/)
