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: (), resizepane _options ()) -> {ok, tmux_operation: ()} | {error, tmuxcompleted _operation: ()}.failure -
Description#
An empty request is rejected before dispatch:
Examples#
1> tmux_pane:resize(invalid_row, #{}).{error,#{code => empty_resize}}- Parameters
-
-
Pane(tmux_model: ()) #pane -
Options(resize_options ()) #
-
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
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | no direct equivalent; libtmux::Window::resize resizes the window, not a pane within it |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib 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#.