WindowLink.swap
Source and package
- Qualified name
-
libtmux.Window Link: swap - Module
- libtmux
- Declared in
WindowLink- Package
- libtmux
- Source
- lua/libtmux/_internal/entity.lua
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby TypeScriptRustGo Java C#C++Swift Kotlin Scala OCaml F# Clojure
- swap: fun( self: libtmux
.Window , other: libtmuxLink .Window , options?: libtmuxLink .Swap , ):libtmuxLink Options .Request <boolean> -
- Parameters
-
-
other(libtmux.Window ) # – One placement of a window in a session: a window can be linked into several.Link
-
tmux command#
The tmux commands behind swap.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Exchange two windows
| Language | Equivalent |
|---|---|
| Python | 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:: |
| Swift | Server |
| 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#.