Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Window.SelectLayoutAsync

Applies a layout to this window.

Source and package
Qualified name
LibTmux.Window.SelectLayoutAsync
Namespace
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Layout.cs

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.

Errors

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Window.SelectLayoutAsync.

tmux command

task material

The tmux commands behind SelectLayoutAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 13 other ports mapped

Source-verified mappings for Set a window's pane layout. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Set a window's pane layout in each port
PortAPIDiffers from C#
C# LibTmux.Window.SelectLayoutAsync
Applies a layout to this window.
This page
Python libtmux.Window.select_layout
Select layout for window.
None recorded in the model
Ruby LibTmux::Window#select_layout
Behavior: Entity mutation.
None recorded in the model
Lua libtmux.Window:layout None recorded in the model
Erlang tmux_window:select_layout/2
Select a built-in arrangement or restore a literal serialized layout for this registered physical window. Binary names must exactly match one of the five built-ins; abbreviations and other names are rejected. Legacy serialized layouts need four hexadecimal checksum digits, a comma and nonempty data. This guard avoids a malformed-header crash in tmux 3.3 and 3.3a.
free function
TypeScript window.Window.selectLayout
Apply a named or custom layout.
None recorded in the model
Rust window.Window.select_layout
Set the window's pane layout.
None recorded in the model
Go tmux.Window.SelectLayout
SelectLayout applies one layout operation to the receiver's exact winlink. It changes pane geometry without selecting the window or promising client focus. The materialized receiver is not refreshed, so callers that need current pane geometry must obtain a new snapshot or refresh related models. A transport or context error can be delivery-ambiguous; the void result cannot carry partial state and no rollback is attempted.
None recorded in the model
Java io.github.libtmux.Window.selectLayout
Rearranges this window's panes into one of tmux's built-in layouts.
None recorded in the model
C++ libtmux::Window::select_layout
Rearrange the panes.
readonly
Swift Server.selectLayout(_:_:)
Applies a named layout, unique abbreviation or checksummed saved layout. Invalid syntax is refused before dispatch; tmux validates geometry.
on Server
OCaml Libtmux_unix.Client.select_layout
Apply a preset or validated custom layout to the window. Pane geometry follows tmux layout rules; capture again to observe the result.
free function
Perl LibTmux::Server::select_layout
select_layout(window => Window|window_id, layout => string).
on Server
Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.
Raku LibTmux::Model::WindowRef.select-layout
Select a named layout. Serialized layouts use restore-layout instead.
on WindowRef
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference