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

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
Ruby LuaTypeScriptRustGoJava.NETC++Swift

Unlink this window from the current session via $ tmux unlink-window.

Parameters
  • kill_if_last ( bool | None ) – Kill the window if it is the last window in the session (-k).

In other ports Unlink a window from a session

Examples

>>> w = session.new_window(window_name='unlink_test')
>>> s2 = server.new_session(session_name='unlink_s2')
>>> w.link(s2)
>>> linked = [x for x in s2.windows if x.window_name == 'unlink_test']
>>> linked[0].unlink()
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();

0 declared, 0 inherited

Esc

Type to search.