# LibTmux.rotate_panes

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/topology.jl#L429
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-rotate_panes/

```
rotate_panes(
    transport,
    target::LibTmux.WindowRef;
    direction,
    kwargs...,
)
```

## Methods

Rotate pane positions in their physical window with `:up` or `:down`. Pane IDs and processes remain; indices and active position can change. Return the result.

```julia
rotate_panes(transport, window::WindowRef; direction=:up, kwargs...)
```

## Parameters

- `transport` (`Any`)
- `target` (`LibTmux.WindowRef`)
- `direction` (`Symbol`)
  Default: `:up`.
- `kwargs`

## Guides

Pages that discuss `rotate_panes`.

- [Ownership and I/O](/en/julia/latest/topics/ownership/)
