Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

function libtmux stable

_query_version

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

Source and package
Qualified name
libtmux.common._query_version
Module
libtmux.common
Package
libtmux
Source
src/libtmux/common.py
_query_version (tmux_bin: str | None = None) → str

Description#

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
Esc

Type to search.

Reference preview Open reference