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.

Swift API

method libtmux-swift latest

Server.session(named:)

The session with this name, or nil if no session has it.

Source and package
Qualified name
Server.session(named:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Lookup.swift

Description#

Names are unique among sessions, which is why this returns one rather than a list. Use hasSession(_:) when only existence matters — it asks tmux a question it answers with an exit status and decodes nothing.

Parameters
Raises
Esc

Type to search.

Reference previewOpen reference