Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

Python API

method libtmux stable

Server.has_session

Return True if session exists.

Source and package
Qualified name
libtmux.Server.has_session
Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
PowerShell Julia Ruby Lua TypeScriptRustGoJavaC# C++ Swift Kotlin Scala F#
has_session ( self, target_session: str, exact: bool = True ) → bool
Parameters
Returns

bool

Raises

tmux command has-session

In other ports Whether a session with this name exists
Esc

Type to search.

Reference preview Open reference