# LibTmux.Server.breakPane

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L829
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-breakpane/

```haskell
breakPane
  :: Server
  -> PaneOccurrence
  -> WindowSlot
  -> IO PaneRelocationReceipt
```

Signature types: [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/), [`WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO), [`PaneRelocationReceipt`](/en/haskell/latest/reference/libtmux-creation-t-panerelocationreceipt/).

Break out a running pane into a vacant slot without requesting selection.
 A multi-pane source produces a new window. A sole pane transfers the
 specified source link, leaving its other links attached to the same window.
 Capture the requested slot to distinguish those outcomes.

## Referenced declarations

- [`LibTmux.Snapshot.PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/) (data type)
- [`LibTmux.Creation.PaneRelocationReceipt`](/en/haskell/latest/reference/libtmux-creation-t-panerelocationreceipt/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)
- [`LibTmux.Creation.WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/) (data type)

## tmux command

The tmux commands behind `breakPane`.

- [`break-pane`](/en/tmux/latest/manual/break-pane/) (when the source matches and destination is vacant)
- [`if-shell`](/en/tmux/latest/manual/if-shell/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_break_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_break_pane_entry/) (attribute)
- [`cmd_break_pane_exec`](/en/tmux/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function)
- [`cmd_if_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_if_shell_entry/) (attribute)
- [`cmd_if_shell_exec`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)

## Guides

Pages that discuss `breakPane`.

- [Change targets and observe pane text](/en/haskell/latest/guides/mutations/)
