Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-lisp latest

libtmux:select-layout

Apply LAYOUT to physical WINDOW; return an outcome and optional replacement. LAYOUT is :EVEN-HORIZONTAL, :EVEN-VERTICAL, :MAIN-HORIZONTAL, :MAIN-VERTICAL, :TILED, or (:CUSTOM string) containing a tmux layout description. Legacy custom text requires four ASCII hex digits, a comma and a nonempty body; JSON-object layouts require a live tmux daemon at least 3.8. Header checks precede I/O; the existing target preflight checks the daemon version before dispatch. Text is literal; tmux validates its checksum, JSON and geometry. This unzooms the window. Signals INVALID-ARGUMENT, UNSUPPORTED-CAPABILITY, STALE-TARGET or an operational condition. Does not change earlier captured values.

Source and package
Qualified name
libtmux:select-layout
Declared in
libtmux
Package
libtmux
Source
src/geometry.lisp
(select-layout client window layout &key (observe t) cancel-token timeout output-limit)

Public owner: libtmux

tmux command#

The tmux commands behind select-layout.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss select-layout.

Esc

Type to search.

Reference previewOpen reference