# LibTmux::Model::PaneRef.break

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L406
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-break/

```
method break(SessionRef:D $session, :$index = Count, Str :$name,
                 WindowLinkRef :$from, Bool :$select = False --> WindowRef:D)
```

Move this pane to a new window in an explicit session, returning the reported window ID.

Move this pane to a new window in an explicit session, returning the reported window ID.

## Parameters

- `$session` (`SessionRef:D`)
- `$index?`
- `$name?` (`Str`)
- `$from?` (`WindowLinkRef`)
- `$select?` (`Bool`)

## tmux command

The tmux commands behind `break`.

- [`break-pane`](/en/tmux/latest/manual/break-pane/)
- [`list-panes`](/en/tmux/latest/manual/list-panes/) `-a` server scope, [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (source: `lib/LibTmux/Model.rakumod:427`)
- [`list-windows`](/en/tmux/latest/manual/list-windows/) `-a` server scope, [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (source: `lib/LibTmux/Model.rakumod:434`)

## 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_list_panes_entry`](/en/tmux/latest/reference/c-variable-cmd_list_panes_entry/) (attribute)
- [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (function)
- [`cmd_list_windows_entry`](/en/tmux/latest/reference/c-variable-cmd_list_windows_entry/) (attribute)
- [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (function)

## In other ports

Move a pane out into a window of its own

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.break_pane`](/en/py/latest/reference/libtmux-pane-break_pane/) (method) |
| Ruby | [`LibTmux::Pane#break_out`](/en/ruby/latest/reference/libtmux-pane-break_out/) (method) |
| Lua | [`libtmux.Pane:break_out`](/en/lua/latest/reference/libtmux-pane-break_out/) (method) |
| Erlang | [`tmux_pane:break/4`](/en/erlang/latest/reference/tmux_pane-break-4/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`pane.Pane.breakOut`](/en/ts/latest/reference/pane-pane-breakout/) (method) |
| Rust | [`pane.Pane.break_out`](/en/rs/latest/reference/pane-pane-break_out/) (method) |
| Go | [`tmux.Pane.BreakPane`](/en/go/latest/reference/tmux-pane-breakpane/) (method) |
| Java | [`io.github.libtmux.Pane.breakOut`](/en/java/latest/reference/io-github-libtmux-pane-pane-breakout/) (method) |
| C# | [`LibTmux.Pane.BreakAsync`](/en/csharp/latest/reference/libtmux-pane-breakasync/) (method) |
| C++ | [`libtmux::Pane::break_out`](/en/cxx/latest/reference/libtmux-pane-break_out/) (method) |
| Swift | [`Server.breakPane(_:from:named:)`](/en/swift/latest/reference/server-breakpane(_-from-named-)/) (method) |
| OCaml | [`Libtmux_unix.Client.break_pane`](/en/ocaml/latest/reference/libtmux_unix-client-break_pane/) (function) |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
