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

libtmux::Window::layout

C++

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
Other languages
Python Ruby Lua TypeScript RustGoJava .NET Swift
layout ( ) → std::string_view
methodreadonly [source]
methodreadonly [source]
layout

An opaque token: hand it back to select_layout exactly as received, and do not parse its shape.

tmux 3.8+ reports JSON here for a plain client, and keeps the classic layout string for a control client unless that client has asked tmux for JSON with refresh-client -f / new-layouts — which Connection::connect sends on every connection, so control mode through this library gets JSON on 3.8+ too.

A version's own layout() output round-trips through its own select_layout on that version; see that method's comment for what "round-trips" promises and what it does not.

In other ports tmux's own description of a window's layout

0 declared, 0 inherited

Esc

Type to search.