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.AttachSessionAsync

Attaches a client to a session on this server.

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

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.AttachSessionAsync.

tmux command

task material

The tmux commands behind AttachSessionAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 6 other ports mapped

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

Attach a client to a session in each port
PortAPIDiffers from C#
C# LibTmux.Server.AttachSessionAsync
Attaches a client to a session on this server.
This page
Python libtmux.Session.attach
Return $ tmux attach-session aka alias: $ tmux attach.
on Session
Rust control.ControlMode.attach
Attach to a session in control mode.
on ControlMode
Go tmux.Server.AttachSession
AttachSession attaches the caller's terminal to a matching session and blocks until detach or context cancellation. Nil standard streams inherit the process streams; each stream must be a concrete terminal descriptor. The call retains caller-supplied files while attached and never owns or closes them. A completed nonzero exit returns CommandError; cancellation can end waiting but does not prove that attachment or detachment did not occur. On Unix, cancellation requests a tmux disconnect before bounded forced cleanup. If the daemon cannot respond, callers may need to restore their terminal state after the call returns.
None recorded in the model
Java io.github.libtmux.control.ControlClient.attach
Attaches, then leaves unless the live server is still the process that was captured.
on ControlClient2 overloads
C++ libtmux::Session::attach_command
A command line that attaches a terminal to this session.
on Sessionreadonly
Raku LibTmux::Server.attach
Spawn a separately owned interactive client on the caller's explicit terminal.
Returns a separately owned attachment with an explicit lifecycle.
No Haskell equivalent.

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

No TypeScript equivalent.

no direct equivalent; the client is out of scope for this port

No Swift equivalent.

reached through Server.connected(attachingTo:), which scopes a block rather than attaching a client

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

attach_argv builds caller-owned terminal arguments without performing attachment; the caller owns process and TTY lifetime.

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