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.isAlive

Whether the tmux server is reachable.

Source and package
Qualified name
Server.isAlive
Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua RustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
isAlive(): Promise<boolean>

Description#

A missing daemon, socket, or tmux executable answers false. Cancellation, a command deadline, or an engine programming error still raises: none says whether the server is alive.

Examples#

if (await server.isAlive()) {
await server.snapshot();
}

tmux command#

The tmux commands behind isAlive.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss isAlive.

In other ports#

Whether the server is running

Equivalents of Whether the server is running in other languages
Language Equivalent
Python libtmux.Server.is_alive
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Rust server.Server.is_alive
Go tmux.Server.IsAlive
Java io.github.libtmux.Server.isAlive
C# LibTmux.Server.IsAliveAsync
C++ libtmux::Server::is_alive
Swift Server.isRunning()
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl Explicit snapshot acquisition returns observed data or a typed failure; operational failures are not converted to false.

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

Esc

Type to search.

Reference previewOpen reference