- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- packages/libtmux/src/window.ts
- Other languages
- PythonRubyLuaRustGoJava.NETC++ Swift
- resize ( options : : ResizeWindowOptions ) Promise<void>
-
Resize this window, by a direction, to a size, or to what its clients allow.
Under tmux's default
window-sizea window tracks its attached clients, which will overwrite this the next time they change;window-size manualis what makes a size of your own stick.In other ports Resize a window
- 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.Window.resizeTo - .NET
LibTmux.Window.ResizeAsync - C++
libtmux::Window::resize - Swift both
Server.resizeoverloads size a pane, not a window
- Python
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