Window.LinkAsync
Links this window into another session.
Source and package
- Qualified name
-
LibTmux .Window. Link Async - Namespace
- LibTmux
- Declared in
Window- Package
- LibTmux
- Source
- src/LibTmux/Window.Links.cs
- Task LinkAsync( Link
Window request, CancellationRequest Token cancellationToken = default ) -
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
-
-
request(LinkWindow ) – Where the link goes.Request -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
Recorded calls
source callsThe 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 materialThe tmux commands behind LinkAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 13 other ports mappedSource-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.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Links this window into another session. | This page |
| Python | libtmux Link this window to another session via $ tmux link-window. | None recorded in the model |
| Ruby | Lib Behavior: Window links. | on Session |
| Lua | libtmux | on WindowLink |
| Erlang | tmux 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 Link this window into another session, giving it a second placement. | None recorded in the model |
| Rust | window Link this window into another session, so both hold the same window. | async |
| Go | tmux 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 Links this window into another session, so one window sits in both. | None recorded in the model |
| C++ | libtmux:: Show this window in another session as well. | readonly |
| Swift | Server 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 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 | Lib 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 | Lib Add a destination placement. tmux synchronizes placements across session groups. | on WindowRef |
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#.