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.requireSerialized

Requires an exact layout string rather than a built-in layout name.

Source and package
Qualified name
io.github.libtmux.Layouts.requireSerialized
Package
io.github.libtmux
Declared in
Layouts
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Layouts.java
static String requireSerialized( String layout, TmuxVersion running)

Description#

The classic form answers "did tmux write this?" by its own checksum, without needing to know what tmux is running. JSON carries nothing equivalent, so the only question left to ask is "could this tmux have written it?" - which is a version, not a parse. Recognising the shape is as far as this goes: a JSON body that passes the shape check but is not real is tmux's own problem to refuse, and it does, safely, on every release that understands the format at all (confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash).

Parameters
Raises
Esc

Type to search.

Reference previewOpen reference