# cmd_swap_pane_entry

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-swap-pane.c#L31
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-variable-cmd_swap_pane_entry/

tmux command: [`swap-pane`](/en/tmux/3.7c/manual/swap-pane/)

```c
const struct cmd_entry cmd_swap_pane_entry = {
    .name = "swap-pane",
    .alias = "swapp",

    .args = { "dDs:t:UZ", 0, 0, NULL },
    .usage = "[-dDUZ] " "[-s src-pane] [-t dst-pane]" ,

    .source = { 's', CMD_FIND_PANE, 0x8 },
    .target = { 't', CMD_FIND_PANE, 0 },

    .flags = 0,
    .exec = cmd_swap_pane_exec
};
```

## Other function references

- [`cmd_swap_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-swap-pane-c-cmd_swap_pane_exec/) (function)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`cmd_entry`](/en/tmux/3.7c/reference/c-struct-cmd_entry/) (struct)
- [`CMD_FIND_PANE`](/en/tmux/3.7c/reference/c-enum-cmd_find_type-cmd_find_pane/) (constant)
