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.

method libtmux-ts latest

Window.unlink

Remove this placement, leaving the window's other placements intact.

Source and package
Qualified name
Window.unlink
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir Python Ruby LuaRustGoJavaC#C++Swift Kotlin Scala F#

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

Equivalents of Unlink a window from a session in other languages
Language Equivalent
Python libtmux.Window.unlink
Lua libtmux.WindowLink:unlink
Rust window.Window.unlink
Go tmux.Window.Unlink
Java io.github.libtmux.Window.unlink
C# LibTmux.Window.UnlinkAsync
C++ libtmux::Window::unlink
Swift Server.unlink(_:)

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference