On this page
Server.format(_:)
- Declared in
- Server
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Formats.swift
-
Evaluates a tmux format against the server rather than any one object.
Reaches the fields that describe the server itself —
#{pid},#{version},#{socket_path}— and any format tmux resolves without a target.- Returns: what tmux printed, minus its trailing newline, or
nilwhen no server is listening. An unknown field name is not an error to tmux and comes back as the empty string, the same as a field that is legitimately empty.
- Raises
- Returns: what tmux printed, minus its trailing newline, or
0 declared, 0 inherited