# main-pane-height

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/main-pane-height/

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

option tmux3.2a

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

* Scope

  window

* Type

  Text

* Default

  `24`

* Set

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

* Read

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

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

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

## Releases[#](https://libtmux.org/en/tmux/3.2a/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.2a/catalog/options/main-pane-height/#source)

* Defined in

  [`options-table.c:836`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L836)

* C source reference

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

* CLI Manual

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

## Used by[#](https://libtmux.org/en/tmux/3.2a/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/)
