libtmux Reference MCP Search
On this page

libtmux.common._query_version

View as Markdown

Module
libtmux.common
Package
libtmux
Source
src/libtmux/common.py
_query_version ( tmux_bin : str | None = None ) str
function [source]
function [source]
_query_version

Return the raw tmux -V version token, letter suffix intact.

Runs tmux -V and extracts the version token (e.g. "3.7a", "master", "next-3.8"). Not memoized -- get_version and get_version_str each cache their own result on top of this query.

Parameters
  • tmux_bin ( str | None ) – Path to tmux binary. If *None*, uses the system tmux.

Returns

str Raw version token from tmux -V.

Raises

0 declared, 0 inherited

Esc

Type to search.