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

Window.resize

Resize this window, by a direction, to a size, or to what its clients allow.

Source and package
Qualified name
Window.resize
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir PythonRubyLuaRustGoJavaC#C++ Swift Kotlin Scala F#

Description#

Under tmux's default window-size a window tracks its attached clients, which will overwrite this the next time they change; window-size manual is what makes a size of your own stick.

Examples#

await window.resize({ height: 30, width: 100 });

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

Equivalents of Resize a window in other languages
Language Equivalent
Python libtmux.Window.resize
Ruby LibTmux::Window#resize
Lua libtmux.Window:resize
Rust window.Window.resize
Go tmux.Window.Resize
Java io.github.libtmux.Window.resizeTo
C# LibTmux.Window.ResizeAsync
C++ libtmux::Window::resize
Swift both Server.resize overloads size a pane, not a window

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

Esc

Type to search.

Reference previewOpen reference