io.github.libtmux.Layouts.Layouts.require
Java
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.Layouts
- Declared in
- Layouts
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Layouts.java
- require ( layout : String ) String ( layout : String , running : TmuxVersion ) String
-
Returns the layout unchanged, having checked tmux will recognise it.
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_lookupis a prefix match, sotileandeven-happly 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.- Raises
-
-
IllegalArgumentException – if tmux would not recognise the layout
-
UnsupportedTmuxVersionException – if the name or the JSON format arrived after this release
-
0 declared, 0 inherited