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.LinkAsync

Links this window into another session.

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

Description

A guard in the native queue rejects the command when the captured source index belongs to a different window or no longer exists.

Parameters

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.LinkAsync.

tmux command

task material

The tmux commands behind LinkAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 13 other ports mapped

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

Link a window into another session in each port
PortAPIDiffers from C#
C# LibTmux.Window.LinkAsync
Links this window into another session.
This page
Python libtmux.Window.link
Link this window to another session via $ tmux link-window.
None recorded in the model
Ruby LibTmux::Session#link_window
Behavior: Window links.
on Session
Lua libtmux.WindowLink:link on WindowLink
Erlang tmux_window_link:link/3
Add another membership of this link's physical window to the destination session and explicit index. Defaults to detached and refuses an occupied index. replace = true maps to tmux -k and can destroy the occupied window. Returns the command result; use get/3 to observe the new membership. The source membership remains. Session groups and renumber-windows retain their tmux semantics. Performs I/O after owner and membership checks.
free function
TypeScript window.Window.link
Link this window into another session, giving it a second placement.
None recorded in the model
Rust window.Window.link_to
Link this window into another session, so both hold the same window.
async
Go tmux.Window.Link
Link adds the stable window to TargetSession as another winlink, targeting the source through the receiver's exact session. Unless Detach is set, tmux makes the new link current in the target session; this is not a global client-focus guarantee. Link does not refresh or mutate the materialized source Window. A transport or context error can be delivery-ambiguous; the void result cannot carry the new winlink identity and no rollback is attempted.
None recorded in the model
Java io.github.libtmux.Window.linkTo
Links this window into another session, so one window sits in both.
None recorded in the model
C++ libtmux::Window::link_to
Show this window in another session as well.
readonly
Swift Server.link(_:into:)
Links a window into another session. The same window then appears in both, sharing one id — which is tmux's model, not a copy. The source is global because no existing session-local appearance is involved.
asyncon Server
OCaml Libtmux_unix.Client.link_window
Add a session-specific link to the global window at index, rejecting an occupied index. The source window and its panes stay shared.
free function
Perl LibTmux::Server::link_window
link_window(window => Window|window_id, session => Session|session_id, index => integer?).
on Server
Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.
Raku LibTmux::Model::WindowRef.link
Add a destination placement. tmux synchronizes placements across session groups.
on WindowRef
No Haskell equivalent.

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

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

Esc
Search in

Type to search.

Reference previewOpen reference