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.

MoreLess about this notice

method libtmux-dotnet

Server.HasSessionAsync

Reports whether a session exists.

Source and package
Qualified name
LibTmux.Server.HasSessionAsync
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Lifecycle.cs
Parameters
Returns

True when tmux reports the session.

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.HasSessionAsync.

tmux command

task material

The tmux commands behind HasSessionAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

Each path starts at a function a command runs, which is degree 1. The degree counts steps from there along the path, and each step is a call or a reference: degree 2 is reached from that function, degree 3 from the next, and so on.

Create a session and its first pane

  1. 1 cmd_new_session_exec
  2. calls → 2 spawn_window
  3. calls → 3 spawn_pane
  4. calls → 4 window_add_pane
  5. calls → 5 window_pane_create

Guides

task material

Pages that discuss HasSessionAsync.

In other ports

task equivalence 7 other ports mapped

Source-verified mappings for Whether a session with this name exists. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Whether a session with this name exists in each port
PortAPIDiffers from C#
C# LibTmux.Server.HasSessionAsync
Reports whether a session exists.
This page
Python libtmux.Server.has_session
Return True if session exists.
None recorded in the model
TypeScript server.Server.hasSession
Whether a session with this name exists.
None recorded in the model
Rust server.Server.has_session
Report whether a session with this exact name exists.
None recorded in the model
Go tmux.Server.HasSession
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 ErrNoServer as a miss and returns other failures.
None recorded in the model
Java io.github.libtmux.Server.hasSession
Whether a session with this name exists.
None recorded in the model
Swift Server.hasSession(_:)
Whether a session by this name or id exists.
None recorded in the model
Raku LibTmux::Server.has-session
Test one exact session ID or name. Acquisition and identity failures still throw.
Checks one exact ID or name; acquisition and identity failures still throw.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No C++ equivalent.

no equivalent on Server

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference