tmux.Server.HasSession
- Module
- tmux
- Declared in
- Server
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/session_lifecycle.go
- Other languages
- Python Ruby Lua TypeScriptRustJava.NET C++ Swift
- HasSession ( ctx : context.Context , request : HasSessionRequest ) (bool, error)
-
HasSession reports whether Target selects a session. With Pattern false it compares session names exactly; with Pattern true, tmux may resolve IDs, client TTYs, unique prefixes, or globs. Pattern-mode completed nonzero exits are misses. Exact-name lookup treats
ErrNoServeras a miss and returns other failures.Exact-name lookup lists sessions because tmux's exact-match marker still resolves identifiers and client TTYs.
In other ports Whether a session with this name exists
- Python
libtmux.Server.has_session - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
server.Server.hasSession - Rust
server.Server.has_session - Java
io.github.libtmux.Server.Server.hasSession - .NET
LibTmux.Server.HasSessionAsync - C++ no equivalent on
Server - Swift
Server.hasSession(_:)
- Python
0 declared, 0 inherited