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.

MoreLess about this notice

method libtmux-dotnet

Window.UnlinkAsync

Removes this window's link to the session it was read through.

Source and package
Qualified name
LibTmux.Window.UnlinkAsync
Namespace
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Links.cs

Description

tmux refuses to unlink a window that belongs to only one session unless it is allowed to destroy it. A guard in the native queue checks the captured session/index still names this window before unlinking it.

Parameters
  • killIfLast (bool) – Whether the window dies when this was its last link. for UnlinkAsync(killIfLast, cancellationToken)

    Default false

  • cancellationToken (CancellationToken) – Cancels the tmux command.

    Default default

  • killIfLast (bool) – Whether the window dies when this was its last link. for UnlinkAsync(killIfLast, expectedPaneIds, cancellationToken)

  • expectedPaneIds (IReadOnlyList<PaneId>) – The nonempty, distinct pane IDs expected in the window, in any order. for UnlinkAsync(killIfLast, expectedPaneIds, cancellationToken)

Errors
  • ArgumentException – The IDs are empty, duplicated, or exceed the native command byte budget. for UnlinkAsync(killIfLast, expectedPaneIds, cancellationToken)

  • TmuxCommandException – The placement or pane membership changed, or tmux refused the unlink. for UnlinkAsync(killIfLast, expectedPaneIds, cancellationToken)

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Window.UnlinkAsync.

tmux command

task material

The tmux commands behind UnlinkAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 12 other ports mapped

Source-verified mappings for Unlink a window from a session. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Unlink a window from a session in each port
PortAPIDiffers from C#
C# LibTmux.Window.UnlinkAsync
Removes this window's link to the session it was read through.
This page
Python libtmux.Window.unlink
Unlink this window from the current session via $ tmux unlink-window.
None recorded in the model
Lua libtmux.WindowLink:unlink on WindowLink
Erlang tmux_window_link:unlink/2
Remove one checked membership. force defaults false, retaining tmux's protection for windows linked to only one session. force = true permits removing the last link, destroying that physical window and possibly its session. Duplicate links within one session retain tmux's native protection rules. Performs I/O and returns the command result without refreshing rows.
free function
Acts on one session-relative membership.
TypeScript window.Window.unlink
Remove this placement, leaving the window's other placements intact.
None recorded in the model
Rust window.Window.unlink
Remove this session's link to the window, leaving other links intact.
async
Go tmux.Window.Unlink
Unlink removes the receiver's exact session winlink without refreshing the materialized receiver. Without KillIfLast, tmux rejects removal of a stable window's only link; with it, that window is destroyed. A transport or context error can be delivery-ambiguous; the void result cannot carry partial identity and no rollback is attempted.
None recorded in the model
Java io.github.libtmux.Window.unlink
Removes this link, leaving the window wherever else it is linked.
None recorded in the model
C++ libtmux::Window::unlink
Stop showing it in the session this value came from.
readonly
Swift Server.unlink(_:)
Removes one of a linked window's appearances. The window survives while any session still holds it.
asyncon Server
OCaml Libtmux_unix.Client.unlink_window_at
Without allow_kill, tmux rejects removal of the last link to a window.
free function
Perl LibTmux::Server::unlink_window
unlink_window(link => WindowLink|session_id:index).
on Server
Requires an explicit WindowLink or session_id:index context; a physical window alone does not select a session placement.
Raku LibTmux::Model::WindowLinkRef.unlink
Remove this placement and its grouped-session peers; kill-last permits the last link.
on WindowLinkRef
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

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

Esc
Search in

Type to search.

Reference previewOpen reference