Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

function libtmux-erlang latest

tmux_pane:resize/2

Request an absolute width, height or both for this registered physical pane. Performs I/O after validating dimensions and origin. tmux can clamp the request to its layout constraints and can resize neighboring panes. Resizing a tiled pane unzooms its window. Use get/2 for actual dimensions; the input row is unchanged. The accepted library range is not a promise that every server accepts every dimension: tmux versions can impose tighter limits and return a command error.

Source and package
Qualified name
tmux_pane:resize/2
Declared in
tmux_pane
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_pane.erl
Other languages
Perlmethod PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC# C++ Swift Kotlin Scala OCaml F# Clojure
resize(Pane, Options) -spec resize(tmux_model:pane(), resize_options()) -> {ok, tmux_operation:completed()} | {error, tmux_operation:failure()}.

Description#

An empty request is rejected before dispatch:

Examples#

1> tmux_pane:resize(invalid_row, #{}).
{error,#{code => empty_resize}}

tmux command#

The tmux commands behind resize/2.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss resize/2.

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