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.

method libtmux-swift latest

Server.selectLayout(_:_:)

Applies a named layout, unique abbreviation or checksummed saved layout, or a JSON layout document on tmux 3.8 and later. Invalid syntax is refused before dispatch; tmux validates geometry.

Source and package
Qualified name
Server.selectLayout(_:_:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Mutations.swift
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC#C++ Kotlin Scala OCaml F# Clojure
selectLayout(window: Window, layout: String) -> ()
Parameters
Raises

tmux command#

The tmux commands behind selectLayout(_:_:).

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Set a window's pane layout

Equivalents of Set a window's pane layout in other languages
Language Equivalent
Python libtmux.Window.select_layout
Ruby LibTmux::Window#select_layout
Lua libtmux.Window:layout
Erlang tmux_window:select_layout/2
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.selectLayout
Rust window.Window.select_layout
Go tmux.Window.SelectLayout
Java io.github.libtmux.Window.selectLayout
C# LibTmux.Window.SelectLayoutAsync
C++ libtmux::Window::select_layout
OCaml Libtmux_unix.Client.select_layout
Perl LibTmux::Server::select_layout Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.

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

Esc

Type to search.

Reference previewOpen reference