Server.swap(_:with:)
Swaps two window appearances. Their underlying window ids do not change, but both links move to new indices.
Source and package
- Qualified name
-
Server.swap(_: with:) - Declared in
Server- Package
- libtmux-swift
- Source
- Sources/LibTmux/Navigation.swift
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRustGo Java C#C++ Kotlin Scala OCaml F# Clojure
- swap(link: Window
Link , with: WindowLink ) -> ()swap(pane: Pane, with: Pane) -> ()
tmux command#
The tmux commands behind swap(_:with:).
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Exchange two windows
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | no equivalent on Window |
| C# | Lib |
| C++ | libtmux:: |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | 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#.