Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

window.Window.swapWith

TypeScript

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
Python Ruby LuaRustGo Java .NETC++Swift
swapWith ( other : : Window ) → Promise<void>
method [source]
method [source]
swapWith

Exchange positions with another window.

In other ports Exchange two windows

Examples

await window.swapWith(other);
>>> 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_idx
True
>>> w2.window_index == w1_idx
True

0 declared, 0 inherited

Esc

Type to search.