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
PowerShell Julia Elixir Python Ruby Lua RustGoJavaC#C++Swift Kotlin Scala F#
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
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()

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

Esc

Type to search.

Reference previewOpen reference