Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

session.Session.detach

TypeScript

View as Markdown

Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
Python Ruby Lua RustGoJava.NETC++Swift
detach ( ) → Promise<void>
method [source]
method [source]
detach

Detach every client attached to this session.

In other ports Detach every client attached to a session

Examples

await session.detach();
>>> with control_mode() as ctl:
... session.detach_client()
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

Esc

Type to search.