# pane.Pane.breakOut

- **Module:** pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/pane.ts#L606
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-breakout/

```
breakOut(windowName?: string): Promise<void>
```

Move this pane out into a window of its own, in the session it is in.

tmux places a break with no destination in whichever session is current,
which is the attached one rather than this pane's.

On tmux 3.7 exactly, a break with no name crashes the server, so a
[`breakOut()`](/en/ts/latest/reference/pane-pane-breakout/) without a [`windowName`](/en/ts/latest/reference/types-newsessionoptions-windowname/) is refused there before anything is sent.

## Examples

```ts
await pane.breakOut("extracted");
```

## Parameters

- `windowName?` (`string`)

## tmux command

The tmux commands behind `breakOut`.

- [`break-pane`](/en/tmux/latest/manual/break-pane/)

## 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)

## 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) |
| 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) |

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