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.detach(_:)

Detaches a client from the server it is attached to.

Source and package
Qualified name
Server.detach(_:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Navigation.swift
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Go Java C# C++ Kotlin Scala OCaml F# Clojure
detach(client: Client) -> ()

Description#

A server operation despite the name: it acts on a client the server already holds, so it needs no terminal of its own. The session the client was viewing is untouched. The daemon incarnation is guarded, but tmux cannot atomically compare client_pid; this detaches whichever current client has Client.name.

Parameters
Raises

tmux command#

The tmux commands behind detach(_:).

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Detach one client

Equivalents of Detach one client in other languages
Language Equivalent
Python libtmux.Server.detach_client
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Server
Rust no equivalent on Server
Go tmux.Server.DetachClient
Java no equivalent on Server
C# LibTmux.Server.DetachClientAsync
C++ no equivalent on Server
OCaml Libtmux_unix.Client.request_detach_client_at
Perl LibTmux::Server::detach_client Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.

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

Esc

Type to search.

Reference previewOpen reference