# LibTmux::Pane#join

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/operations.rb#L340
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-pane-join/

tmux command: [`join-pane`](/en/tmux/latest/manual/join-pane/)

```
def join: (
  ::LibTmux::EntityRef,
  direction: :horizontal | :vertical,
  ?before: bool,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Entity mutation.

Behavior contract: Entity mutation.

## Parameters

- `arg1` (`::LibTmux::EntityRef`)
- `direction` (`:horizontal | :vertical`)
- `before` (`bool`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## In other ports

### Move a pane into another window

- Python: [`libtmux.Pane.join`](/en/py/latest/reference/libtmux-pane-join/) (method)
- TypeScript: [`pane.Pane.joinTo`](/en/ts/latest/reference/pane-pane-jointo/) (method)
- Go: [`tmux.Pane.Join`](/en/go/latest/reference/tmux-pane-join/) (method)
- Java: [`io.github.libtmux.Pane.Pane.joinTo`](/en/java/latest/reference/io-github-libtmux-pane-pane-jointo/) (method)
- C#: [`LibTmux.Pane.JoinAsync`](/en/csharp/latest/reference/libtmux-pane-joinasync/) (method)
- C++: [`libtmux::Pane::join`](/en/cxx/latest/reference/libtmux-pane-join/) (method)
- Swift: [`Server.join(_:into:direction:size:)`](/en/swift/latest/reference/server-join(_-into-direction-size-)/) (method)
