- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- crates/libtmux/src/window.rs
- Other languages
- PythonTypeScriptGoJava.NETC++ Swift
-
Resize the window to an exact size in cells.
In other ports Resize a window
- Python
libtmux.Window.resize - TypeScript
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
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));await window.resize({ height: 30, width: 100 });0 declared, 0 inherited