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

libtmux.common._query_version

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

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.