libtmux.Session.detach_client
- Module
- libtmux
- Declared in
- Session
- Package
- libtmux
- Source
- src/libtmux/session.py
- Other languages
- Ruby Lua TypeScriptRustGoJava.NETC++Swift
-
Detach every client attached to this session.
Maps to
$ tmux detach-client -s <session_id>— the onlydetach-clientflag group that is genuinely session-scoped.In other ports Detach every client attached to a session
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
session.Session.detach - Rust
session.Session.detach_clients - Go
tmux.Session.DetachClients - Java
io.github.libtmux.Session.Session.detachClients - .NET
LibTmux.Session.DetachClientAsync - C++
libtmux::Session::detach_clients - Swift
Server.detachClients(from:)
Examples
>>> with control_mode() as ctl:... session.detach_client()await session.detach();let guard = libtmux::test::TestServer::new().await?;let session = guard.server().new_session("busy").await?;
// Nothing is attached in a headless fixture, so this is a no-op.session.detach_clients().await?;
guard.shutdown().await?;0 declared, 0 inherited