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

Swift API

method libtmux-swift

Server.validateLayouts(_:)

Checks layouts and their required pane counts before changing tmux.

Source and package
Qualified name
Server.validateLayouts(_:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Layout.swift
validateLayouts(layouts: [(layout: String, paneCount: Int)]) -> ()

Description

Custom layouts require a valid checksum, nonempty tree and enough pane cells. Geometry and pruning remain tmux's responsibility. Empty batches perform no I/O unless cancelled; each supplied layout must be nonempty.

A JSON layout document is refused on a release below tmux 3.8.

Unique named abbreviations follow the running daemon. Only an endpoint with no daemon uses the configured executable's version. A release below the supported floor, like transport and cancellation failures, is thrown.

Parameters
Errors

Recorded calls

source calls
No call edges in the Swift model.

The Swift 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 Server.validateLayouts(_:).

Esc
Search in

Type to search.

Reference previewOpen reference