libtmux.Window.swap
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
- Other languages
- Ruby LuaTypeScriptRustGo Java .NETC++Swift
-
Swap this window with another via
$ tmux swap-window.In other ports Exchange two windows
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.WindowLink:swap - TypeScript
window.Window.swapWith - Rust
window.Window.swap_with - Go
tmux.Window.Swap - Java no equivalent on
Window - .NET
LibTmux.Window.SwapAsync - C++
libtmux::Window::swap_with - Swift
Server.swap(_:with:)
Examples
>>> w1 = session.new_window(window_name='swap_a')>>> w2 = session.new_window(window_name='swap_b')>>> w1_idx = w1.window_index>>> w2_idx = w2.window_index>>> w1.swap(w2)>>> w1.window_index == w2_idxTrue>>> w2.window_index == w1_idxTrueawait window.swapWith(other);0 declared, 0 inherited