Pane.SwapAsync
Swaps this pane with another.
Source and package
- Qualified name
-
LibTmux .Pane. Swap Async - Namespace
- LibTmux
- Declared in
Pane- Package
- LibTmux
- Source
- src/LibTmux/Pane.Topology.cs
- Task SwapAsync( Swap
Pane request, CancellationRequest Token cancellationToken = default ) -
- Parameters
-
-
request(SwapPane ) – Which pane to swap with.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.Pane.SwapAsync.
tmux command
task materialThe tmux commands behind SwapAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 11 other ports mappedSource-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.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Swaps this pane with another. | This page |
| Python | libtmux Swap this pane with another via $ tmux swap-pane. | None recorded in the model |
| Ruby | Lib Behavior: Entity mutation. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Erlang | tmux 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 Exchange positions with another pane. | None recorded in the model |
| Rust | pane Swap this pane's position with another. | async |
| Go | tmux 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 Swaps this pane's position with another's. | None recorded in the model |
| C++ | libtmux:: | readonly |
| OCaml | Libtmux Exchange pane positions without exchanging their identities or running processes. Both targets must belong to the same bound generation. | free function |
| Raku | Lib Swap the two verified pane identities or session-relative window placements. | on PaneRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Server.swap(_:with:) swaps windows, not panes
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#.