Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

method libtmux-perl latest

Server.resize_pane

resize_pane(pane => Pane|pane_id, width => positive_integer?, height => positive_integer?).

Source and package
Qualified name
LibTmux::Server::resize_pane
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
packages/core/lib/LibTmux/Server.pm
Other languages
Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC# C++ Swift Kotlin Scala OCaml F# Clojure
sub resize_pane($self, %args)

Description#

Resize a LibTmux::Pane to the supplied positive width and/or height. tmux's layout constraints may affect the resulting dimensions; inspect another LibTmux::Snapshot for observed values.

Returns undef after command acceptance. Performs I/O; failures propagate through LibTmux::X. Captured objects are not modified.

$server->resize_pane(pane => $pane, width => 100);

Methods#

Parameters

tmux command#

The tmux commands behind resize_pane.

display-message (daemon identity or target preflight) resize-pane

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

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

Esc

Type to search.

Reference previewOpen reference