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

Swaps this window with another.

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

Description

A window linked into several sessions resolves to whichever link tmux picks, because a window identifier does not name one.

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

tmux command

task material

The tmux commands behind SwapAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 9 other ports mapped

Source-verified mappings for Exchange two windows. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Exchange two windows in each port
PortAPIDiffers from C#
C# LibTmux.Window.SwapAsync
Swaps this window with another.
This page
Python libtmux.Window.swap
Swap this window with another via $ tmux swap-window.
None recorded in the model
Lua libtmux.WindowLink:swap on WindowLink
Erlang tmux_window_link:swap/3
Swap the physical windows at two checked memberships. Other links to either window remain intact. detach maps to tmux -d and defaults true. tmux applies its session-selection and group-synchronization rules. Returns the command result; old rows still name their original expected windows and can become stale. Performs I/O, with the documented gap between preflight and action.
free function
TypeScript window.Window.swapWith
Exchange positions with another window.
None recorded in the model
Rust window.Window.swap_with
Swap this window's position with another.
async
Go tmux.Window.Swap
Swap exchanges the receiver and Target exact winlinks. Their stable WindowIDs move to the opposite session-and-index views; a WindowID alone does not identify either endpoint. Unless Detach is set, tmux may change the affected sessions' current-window selection; this is not a global client-focus guarantee.
None recorded in the model
C++ libtmux::Window::swap_with
Exchange positions with another window, keeping both ids.
readonly
Swift Server.swap(_:with:)
Swaps two window appearances. Their underlying window ids do not change, but both links move to new indices.
asyncon Server2 overloads
Raku LibTmux::Model::WindowLinkRef.swap
Swap the two verified pane identities or session-relative window placements.
on WindowLinkRef
No Haskell equivalent.

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

No Java equivalent.

no equivalent on Window

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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