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

window.Layout

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
window
Package
libtmux
Source
crates/libtmux/src/window.rs
enum window.Layout
enumoverload [source]
enumoverload [source]
enum window.Layout

One of the pane arrangements tmux knows by name.

tmux has exactly these, so a layout that does not exist is a compile error rather than a refusal at the far end of a round trip. A saved layout string is a different thing and goes through LayoutSpec::Saved .

Examples

use libtmux::Layout;
let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("arranged").await?;
let mut window = session.active_window().await?.expect("a window");
window.select_layout(Layout::EvenHorizontal).await?;
assert_eq!(Layout::EvenHorizontal.as_str(), "even-horizontal");
guard.shutdown().await?;

9 declared, 0 inherited

Members

Esc

Type to search.