Skip to contents

Functions to get and set the width and height of a tmux session, window, and pane.

Usage

width(target)

width(target) <- value

set_width(target, value)

height(target)

height(target) <- value

set_height(target, value)

Arguments

target

A tmuxr_session, tmuxr_window, or tmuxr_pane.

value

An integer.

Value

An integer. The new width or height.

Note

The size of a tmuxr_pane can only be changed if there are other panes in the same window.