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.

method libtmux-ts latest

Pane.resize

Resize this pane; tmux ignores a dimension its layout cannot honour.

Source and package
Qualified name
Pane.resize
Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts
Other languages
PowerShell Julia Elixir PythonRubyLuaRustGoJavaC# C++ Swift Kotlin Scala F#

Description#

Unzooms the window first, so a resize on a zoomed window restores the layout as well as applying the size.

Examples#

await pane.resize({ height: 20 });
Parameters

tmux command#

The tmux commands behind resize.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Resize a pane

Equivalents of Resize a pane in other languages
Language Equivalent
Python libtmux.Pane.resize
Ruby LibTmux::Pane#resize
Lua libtmux.Pane:resize
Rust pane.Pane.resize
Go tmux.Pane.Resize
Java io.github.libtmux.Pane.resize
C# LibTmux.Pane.ResizeAsync
C++ no direct equivalent; libtmux::Window::resize resizes the window, not a pane within it
Swift Server.resize(_:width:height:)

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference