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

Swift API

Swift documentation

Server.rotate(_:upward:)

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Navigation.swift
Other languages
Python Ruby Lua TypeScriptRustGoJava.NETC++
rotate(_:upward:) ( window : Window , upward : Bool ) → ()
methodasync [source]
methodasync [source]
rotate(_:upward:)

Shifts every pane in a window one position around the layout.

The layout itself is untouched: the panes move through its positions, each taking the size and place of its neighbour. Ids do not change, so panes you already hold stay valid — but their indices do, which is what makes this different from swap(_:with:)-(Pane,Pane).

  • Parameters:
    • window: the window whose panes move.
    • upward: each pane takes the next numerically lower position, which is tmux's own default. false sends them the other way.
Raises
In other ports Rotate panes within a window

0 declared, 0 inherited

Esc

Type to search.