Window.unlink
Remove this placement, leaving the window's other placements intact.
Source and package
-
Description#
For a window linked into several sessions. A window shared because its sessions are grouped is not linked, and tmux refuses with "window only linked to one session" — a group member leaves by being killed, not by unlinking.
Examples#
const destination = await server.newSession({ name: "unlink-example" });await window.link({ session: destination.id });const placement = (await server.snapshot()).windows.one({id: window.id,session: { is: { id: destination.id } },});await placement.unlink();
tmux command#
The tmux commands behind unlink.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Unlink a window from a session
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.