Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Swift API

Swift documentation

Server.hasSession(_:)

Swift

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Server.swift
Other languages
Python Ruby Lua TypeScriptRustGoJava.NET C++
hasSession(_:) ( name : String ) → Bool
methodasync [source]
methodasync [source]
hasSession(_:)

Whether a session by this name or id exists.

Asks the question tmux has a command for rather than listing every session and searching one: has-session answers with its exit status, so this decodes nothing and stays correct for a name a listing would have to be parsed to find.

Raises

Discussed in Filtering and querying, in practice

In other ports Whether a session with this name exists

0 declared, 0 inherited

Esc

Type to search.