# LibTmux.break_pane

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

```
break_pane(
    transport,
    pane::LibTmux.PaneRef,
    source::LibTmux.WindowLinkRef,
    destination::LibTmux.SessionRef;
    index,
    name,
    select,
    kwargs...,
)
```

## Methods

Move the pane into an explicit destination window slot without respawning it. The checked source link establishes session context for a shared window. Removing a pane changes every link to its physical window; moving its final pane moves the source window link instead. Return the resulting `WindowRef`; tmux 3.5 and earlier print nothing for a final pane, so the window is read back from the pane. Exactly tmux 3.7 stops on a nameless `break-pane`, so there `name` is required and raises `UnsupportedCapability` before any effect when omitted. tmux 3.7 also ignores `-n`, so the window is renamed afterwards. Checks are best effort against concurrent topology changes. Invalid replies raise `CreationResponseError` with uncertain effects; no retry or rollback occurs.

```julia
break_pane(transport, pane::PaneRef, source::WindowLinkRef,
           destination::SessionRef; index, name=nothing, select=false, kwargs...)
```

## Parameters

- `transport` (`Any`)
- `pane` (`LibTmux.PaneRef`)
- `source` (`LibTmux.WindowLinkRef`)
- `destination` (`LibTmux.SessionRef`)
- `index` (`Integer`)
- `name` (`Union{Nothing, AbstractString}`)
  Default: `nothing`.
- `select` (`Bool`)
  Default: `false`.
- `kwargs`

## Guides

Pages that discuss `break_pane`.

### Guides

- [Compatibility](/en/julia/latest/guides/compatibility/)

### Topics

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