Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Go API

struct libtmux-go latest

ResizeWindowRequest

ResizeWindowRequest selects one directional, manual, expand, or shrink operation. Height and Width may be set together. A zero request asks tmux to reapply the current manual size. Direction requires a positive Adjustment; that pair, dimensions, Expand, and Shrink are mutually exclusive and are validated before execution. Zero Adjustment, Height, and Width omit their modes; nonzero values must be positive. The request is supported on every supported tmux.

Source and package
Qualified name
tmux.ResizeWindowRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_resize.go
struct tmux.ResizeWindowRequest

Fields6#

ResizeWindowRequest fields
NameTypeDescription
Adjustment int Adjustment is the required positive amount for Direction; zero omits it.
Direction WindowResizeDirection Direction selects a directional adjustment; zero selects another mode.
Expand bool Expand sets the window to the size of the largest session containing it.
Height int Height sets a positive manual height; zero preserves the current height.
Shrink bool Shrink sets the window to the size of the smallest session containing it.
Width int Width sets a positive manual width; zero preserves the current width.
Esc

Type to search.

Reference previewOpen reference