Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Python API

function libtmux latest

_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 previewOpen reference