Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

io.github.libtmux.Layouts.Layouts.requireSerialized

Java
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
io.github.libtmux.Layouts
Declared in
Layouts
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Layouts.java
requireSerialized ( layout : String , running : TmuxVersion ) → String
methodstatic [source]
methodstatic [source]
requireSerialized

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

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

Raises

0 declared, 0 inherited

Esc

Type to search.