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 latest

Window.unlink

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

Source and package
Qualified name
libtmux.Window.unlink
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
Perlmethod Erlangfunction PowerShell Julia Elixir Haskell Common Lisp Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure

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()
Parameters

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
Lua libtmux.WindowLink:unlink
Erlang tmux_window_link:unlink/2 Acts on one session-relative membership.
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.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(_:)
OCaml Libtmux_unix.Client.unlink_window_at
Perl LibTmux::Server::unlink_window Requires an explicit WindowLink or session_id:index context; a physical window alone does not select a session placement.

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

Esc

Type to search.

Reference previewOpen reference