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-java latest

Layouts.require

Returns the layout unchanged, having checked tmux will recognise it.

Source and package
Qualified name
io.github.libtmux.Layouts.require
Package
io.github.libtmux
Declared in
Layouts
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Layouts.java
public static String require(String layout)public static String require( String layout, TmuxVersion running)public static String require( String layout, Server server, int paneCount)

Description#

Accepts the classic checksummed form, a JSON layout (by shape only — a running version is needed to say whether this server could have written it, which TmuxVersion) does), a built-in name, or an unambiguous prefix of exactly one built-in name (layout_set_lookup is a prefix match, so tile and even-h apply on every tmux release). Ambiguity is judged against every name this library knows, not only the ones the eventual server will have — the version to narrow that with is not available here.

Parameters
  • layout (String) # for require(layout); require(layout, running)

  • running (TmuxVersion) # for require(layout, running)

  • layout (String) # – a built-in name, unique abbreviation or serialized tree for require(layout, server, paneCount)

  • server (Server) # – the endpoint which will apply the layout for require(layout, server, paneCount)

  • paneCount (int) # – the number of panes which the layout must accommodate for require(layout, server, paneCount)

Returns

a full built-in name or the unchanged serialized layout for require(layout, server, paneCount)

Raises
Esc

Type to search.

Reference previewOpen reference