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-ts latest

Server.version

The tmux version this server is running.

Source and package
Qualified name
Server.version
Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua Rust GoJavaC# C++ Swift Kotlin Scala F#
async version(): Promise<TmuxVersion>

Description#

The version is probed once per connection and cached with the rest of the server's capabilities, so asking repeatedly costs nothing after the first.

Examples#

const version = await server.version();
version.major; // 3

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
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
Swift Server.version()

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

Esc

Type to search.

Reference previewOpen reference