Window.SelectLayoutAsync
Applies a layout to this window.
Source and package
- Qualified name
-
LibTmux .Window. Select Layout Async - Namespace
- LibTmux
- Declared in
Window- Package
- LibTmux
- Source
- src/LibTmux/Window.Layout.cs
- async Task<Window> SelectLayoutAsync( Select
Layout ? request = null, CancellationRequest Token cancellationToken = default ) -
Description
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(SelectLayout ?) – The layout to apply.Request Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
- Returns
-
A replacement handle carrying the new layout.
- Errors
-
-
Tmux
Window – The layout is malformed or unknown on every release.Exception -
Tmux
Unsupported – The layout is a form the running release lacks, such as a mirrored preset or the JSON form.On Release Exception
-
Recorded calls
source callsThe 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 materialThe tmux commands behind SelectLayoutAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 13 other ports mappedSource-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.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Applies a layout to this window. | This page |
| Python | libtmux Select layout for window. | None recorded in the model |
| Ruby | Lib Behavior: Entity mutation. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Erlang | tmux 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 Apply a named or custom layout. | None recorded in the model |
| Rust | window Set the window's pane layout. | None recorded in the model |
| Go | tmux 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 Rearranges this window's panes into one of tmux's built-in layouts. | None recorded in the model |
| C++ | libtmux:: Rearrange the panes. | readonly |
| Swift | Server Applies a named layout, unique abbreviation or checksummed saved layout. Invalid syntax is refused before dispatch; tmux validates geometry. | on Server |
| OCaml | Libtmux 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 | Lib 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 | Lib Select a named layout. Serialized layouts use restore-layout instead. | on WindowRef |
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#.