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

Pane.SwapAsync

Swaps this pane with another.

Source and package
Qualified name
LibTmux.Pane.SwapAsync
Namespace
LibTmux
Declared in
Pane
Package
LibTmux
Source
src/LibTmux/Pane.Topology.cs
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.Pane.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 11 other ports mapped

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

Exchange two panes in each port
PortAPIDiffers from C#
C# LibTmux.Pane.SwapAsync
Swaps this pane with another.
This page
Python libtmux.Pane.swap
Swap this pane with another via $ tmux swap-pane.
None recorded in the model
Ruby LibTmux::Pane#swap
Behavior: Entity mutation.
None recorded in the model
Lua libtmux.Pane:swap None recorded in the model
Erlang tmux_pane:swap/3
Exchange two panes' layout positions within or across physical windows. Preserves their IDs and processes; parent windows, dimensions, indexes and inherited options can change. Both rows require the same registered owner. detach defaults true; active positions can still receive different panes. zoom maps to native -Z. Identical IDs do not exchange panes, but native zoom handling still runs; the default can unzoom even a same-pane swap. Returns the command result; get/2 observes the resulting values explicitly.
free function
TypeScript pane.Pane.swapWith
Exchange positions with another pane.
None recorded in the model
Rust pane.Pane.swap_with
Swap this pane's position with another.
async
Go tmux.Pane.Swap
Swap exchanges the receiver with one exact or adjacent pane. Explicit targets use exact linked-pane views; PaneID alone does not distinguish linked views. Unless Detach is set, tmux may change active-pane selection; this is not a global client-focus guarantee. A directional swap cannot identify the adjacent target because tmux does not report it, so the returned PaneSwapResult.Target is zero.
None recorded in the model
Java io.github.libtmux.Pane.swapWith
Swaps this pane's position with another's.
None recorded in the model
C++ libtmux::Pane::swap_with readonly
OCaml Libtmux_unix.Client.swap_panes
Exchange pane positions without exchanging their identities or running processes. Both targets must belong to the same bound generation.
free function
Raku LibTmux::Model::PaneRef.swap
Swap the two verified pane identities or session-relative window placements.
on PaneRef
No Haskell equivalent.

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

No Swift equivalent.

Server.swap(_:with:) swaps windows, not panes

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 PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference