- Module
- LibTmux
- Declared in
- Window
- Package
- LibTmux
- Source
- src/LibTmux/Window.Layout.cs
- Other languages
- PythonRubyLuaTypeScriptRustGoJavaC++Swift
- SelectLayoutAsync ( request : SelectLayoutRequest? , cancellationToken : CancellationToken ) Task<Window>
-
Applies a layout to this window.
Feeding a previously captured
Layoutback restores the same pane sizes on every version, but on tmux 3.7 and earlier it can rotate which pane lands in which position - measured by hand, not a hypothetical. tmux 3.8 and newer accepts the JSON form of the layout (from a plain, non-control client) and restores the exact arrangement, including which pane id sits where; the classic checksum-prefixed form never carries pane ids and so cannot.- Parameters
-
-
request ( SelectLayoutRequest? ) – The layout to apply.
-
cancellationToken ( CancellationToken ) – Cancels the tmux command.
-
- Returns
-
A replacement handle carrying the new layout.
- Raises
-
-
TmuxWindowException – The layout is one tmux may not recognise.
-
In other ports Set a window's pane layout
- Python
libtmux.Window.select_layout - Ruby
LibTmux::Window#select_layout - Lua
libtmux.Window:layout - TypeScript
window.Window.selectLayout - Rust
window.Window.select_layout - Go
tmux.Window.SelectLayout - Java
io.github.libtmux.Window.Window.selectLayout - C++
libtmux::Window::select_layout - Swift
Server.selectLayout(_:_:)
0 declared, 0 inherited