Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-dotnet latest

Window.SelectLayoutAsync

Namespace LibTmux.Window.SelectLayoutAsync LibTmux

Applies a layout to this window.

View as Markdown

Source and package
Module
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Layout.cs
Other languages
PythonRubyLuaTypeScriptRustGoJavaC++Swift Kotlin Scala F#
SelectLayoutAsync ( request : SelectLayoutRequest? , cancellationToken : CancellationToken ) → Task<Window>
methodasync [source]

Description#

Feeding a previously captured Layout back 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
Returns

A replacement handle carrying the new layout.

Raises

tmux command select-layout

In other ports Set a window's pane layout
Esc

Type to search.