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 latest

Pane.resize

Resize tmux pane.

Source and package
Qualified name
libtmux.Pane.resize
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp RubyLuaTypeScriptRustGoJavaC# C++ Swift Kotlin Scala OCaml F# Clojure
resize
( 13 parameters ) ( self, # Adjustments, adjustment_direction: ResizeAdjustmentDirection | None = None, adjustment: int | None = None, # Manual, height: str | int | None = None, width: str | int | None = None, # Zoom, zoom: bool | None = None, # Mouse, mouse: bool | None = None, # Optional flags, trim_below: bool | None = None, )
→ Pane

Description#

Notes

Three types of resizing are available:

  1. Adjustments: adjustment_direction and adjustment.
  2. Manual resizing: height and / or width.
  3. Zoom / Unzoom: zoom.
Parameters
Returns

Pane

Raises

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
Ruby LibTmux::Pane#resize
Lua libtmux.Pane:resize
Erlang tmux_pane:resize/2
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.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:)
OCaml Libtmux_unix.Client.resize_pane
Perl LibTmux::Server::resize_pane Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.

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

Esc

Type to search.

Reference previewOpen reference