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.

method libtmux-swift latest

Server.version()

Which tmux executable this server runs.

Source and package
Qualified name
Server.version()
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/TmuxVersion.swift
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust GoJavaC# C++ Kotlin Scala OCaml F# Clojure
version() -> TmuxVersion

Description#

Read from the binary rather than from a running daemon, so it answers before anything is started, and answers for a release too old to serve commands: a diagnostic, not a version check. A build this library cannot parse throws rather than reporting a version it guessed. Commands are checked against the daemon instead; see Server/run(_:)-(TmuxCommand).

Raises

In other ports#

Which tmux this server runs

Equivalents of Which tmux this server runs in other languages
Language Equivalent
Python no equivalent on Server
Erlang tmux_server:version/1
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript server.Server.version
Rust no equivalent on Server
Go tmux.Server.Version
Java io.github.libtmux.Server.version
C# LibTmux.Server.Version
C++ Server::tmux_version asks the executable with tmux -V without reaching a server
OCaml Libtmux_unix.Client.version
Perl Read the acquired snapshot metadata version; the core has no standalone live version getter.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference