Core Library0.xAPI Reference

Choose documentation 2

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.

cmdlet libtmux-powershell latest

LibTmux.Set-TmuxPaneSize

Resize a pane or toggle its zoom.

Source and package
Qualified name
LibTmux\Set-TmuxPaneSize
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/SetTmuxPaneSizeCommand.cs
Direction: Set-TmuxPaneSize [-Pane] <LibTmux.Pane> -Direction <LibTmux.ResizeDirection> -Adjustment <System.Int32> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]Size (default): Set-TmuxPaneSize [-Pane] <LibTmux.Pane> [-Width <System.String>] [-Height <System.String>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]Zoom: Set-TmuxPaneSize [-Pane] <LibTmux.Pane> -Zoom [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

Description#

Specify at least one positive cell or percentage dimension, an edge Direction with positive Adjustment, or Zoom. These forms cannot be combined. Zoom toggles the current state; repeating it turns zoom off. tmux clamps sizes that do not fit. PassThru returns the observed replacement Pane, which may differ from the requested dimensions.

Notes

A disappeared target or stale generation writes a per-target error. Use -ErrorAction Stop to terminate. Cancellation cannot undo an already dispatched change.

Command details#

Command type
cmdlet
Default parameter set
Size
Confirmation
Supports -WhatIf and -Confirm; confirm impact: Medium.
Positional binding
Enabled.
Pipeline inputs
LibTmux.Pane: Native pipeline owner.
Outputs
LibTmux.Pane

Examples#

Example 1 Give a previously selected native $pane 40 columns in a window with a horizontal split. View source

Terminal window
$pane | LibTmux\Set-TmuxPaneSize -Width 40 -PassThru
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

LibTmux.Pane: Emitted only with PassThru.

tmux command#

The tmux commands behind Set-TmuxPaneSize.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference