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

Server.IsAlive

IsAlive reports whether a tmux server answers on the configured socket. Only an absent server reports false without an error: a socket that exists but cannot be reached, such as one the process may not read, is a question that could not be answered and is returned as an error. Use Server.CheckAlive where an absent server is itself the failure.

Source and package
Qualified name
tmux.Server.IsAlive
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server.go
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScriptRustJavaC#C++Swift Kotlin Scala OCaml F# Clojure
func (s Server) IsAlive(ctx context.Context) (bool, error)
Parameters

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.
TypeScript server.Server.isAlive
Rust server.Server.is_alive
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