Server.select_layout
select_layout(window => Window|window_id, layout => string).
Source and package
-
Description#
Apply an unambiguous predefined layout name or a checksum-prefixed native layout to a
LibTmux::Window. Unknown or ambiguous predefined names throw"InvalidArgument" in LibTmux::Xbefore dispatch, including on tmux 3.3a. Native custom-layout validation remains tmux's responsibility.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->select_layout(window => $window, layout => 'tiled');Methods#
tmux command#
The tmux commands behind select_layout.
display-message (daemon identity or target preflight) select-layout tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Set a window's pane layout
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.