Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-dotnet latest

Window.SwapAsync

Namespace LibTmux.Window.SwapAsync LibTmux

Swaps this window with another.

View as Markdown

Source and package
Module
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Links.cs
Other languages
Python Ruby LuaTypeScriptRustGo Java C++Swift Kotlin Scala F#
SwapAsync ( target : WindowId , detach : bool , cancellationToken : CancellationToken ) → Task
method [source]

Description#

A window linked into several sessions resolves to whichever link tmux picks, because a window identifier does not name one.

Parameters
  • target ( WindowId ) – The window to swap with.

  • detach ( bool ) – Whether the swapped window is left unselected.

  • cancellationToken ( CancellationToken ) – Cancels the tmux command.

tmux command swap-window

In other ports Exchange two windows
Esc

Type to search.