Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

window.Window.resize

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PythonRubyLuaRustGoJava.NETC++ Swift
resize ( options : : ResizeWindowOptions ) → Promise<void>
method [source]
method [source]
resize

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

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.

In other ports Resize a window

Examples

await window.resize({ height: 30, width: 100 });
let session = server.new_session("sized").await?;
let mut window = session.windows().await?.remove(0);
window.resize(100, 40).await?;
assert_eq!((window.width(), window.height()), (100, 40));

0 declared, 0 inherited

Esc

Type to search.