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-TmuxWindowSize

Resize a window in cells or against its attached clients.

Source and package
Qualified name
LibTmux\Set-TmuxWindowSize
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/SetTmuxWindowSizeCommand.cs

Description#

Specify at least one positive cell dimension, an edge Direction with positive Adjustment, or a client-size Mode. These forms cannot be combined. Resize delegates to the native core and switches window-size to manual. PassThru returns the observed replacement Window; the original capture remains unchanged.

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.Window: Native pipeline owner.
Outputs
LibTmux.Window

Examples#

Example 1 Set a previously selected native $window to 120 columns and 40 rows. View source

Terminal window
$window | LibTmux\Set-TmuxWindowSize -Width 120 -Height 40 -PassThru
Parameters
Common parameters 12

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

Returns

LibTmux.Window: Emitted only with PassThru.

tmux command#

The tmux commands behind Set-TmuxWindowSize.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference