Window.resize
Resize tmux window.
Source and package
-
Description#
Notes
Three types of resizing are available:
- Adjustments:
adjustment_directionandadjustment. - Manual resizing:
heightand / orwidth. - Expand or shrink:
expandorshrink.
- Parameters
-
-
adjustment_direction(ResizeAdjustment | None) # – direction to adjust,Direction Up,Down,Left,Right. -
adjustment(int | None) # -
height(int | None) # –resize-window -ydimensions -
width(int | None) # –resize-window -xdimensions
- Returns
- Raises
- Adjustments:
tmux command#
The tmux commands behind resize.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Resize a window
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | both Server.resize overloads size a pane, not a window |
| OCaml | Libtmux |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.