validate_layout
Check names, v1 saved-layout checksum, v1/v2 tree grammar and minimum cell count without I/O.
Source and package
- Qualified name
-
libtmux::validate _layout - Namespace
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/layout.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] expected<void, CommandFailure > validate_layout(std::string layout, std::_view size minimum_t _panes = 1); -
Description
Names must be valid on at least one supported tmux version; Server::validate_layouts resolves version-dependent names and requires tmux 3.8 or newer for v2 JSON layouts. Saved input, including floating-pane metadata, is retained unchanged. The v2 reader follows tmux's restricted JSON syntax. Geometry and resizing remain tmux's responsibility. Empty layouts are invalid.
- Parameters
-
-
Default
1
Recorded calls
source callsThe C++ 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 libtmux::validate_layout.