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

libtmux.common.get_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
get_version ( tmux_bin : str | None = None ) → LooseVersion
function [source]
function [source]
get_version

Return tmux version.

If tmux is built from git master, the version returned will be the latest version appended with -master, e.g. 2.4-master.

If using OpenBSD's base system tmux, the version will have -openbsd appended to the latest version, e.g. 2.4-openbsd.

Parameters
Returns

distutils.version.LooseVersion tmux version according to *tmux_bin* if provided, otherwise the system tmux from shutil.which

0 declared, 0 inherited

Esc

Type to search.