# LibTmux::Pane#join

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

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

## tmux command

The tmux commands behind `join`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_join_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_join_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)

## In other ports

Move a pane into another window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.join`](/en/py/latest/reference/libtmux-pane-join/) (method) |
| TypeScript | [`pane.Pane.joinTo`](/en/ts/latest/reference/pane-pane-jointo/) (method) |
| Rust | no equivalent on `Pane` |
| Go | [`tmux.Pane.Join`](/en/go/latest/reference/tmux-pane-join/) (method) |
| Java | [`io.github.libtmux.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) |

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