# LibTmux::Server.open-control

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L575
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-open-control/

```
method open-control(SessionId:D :$session-id!, *%settings --> LibTmux::Control::Connection:D)
```

Open a separately owned control connection attached to an explicit session ID.

Open a separately owned control connection attached to an explicit session ID.

## Parameters

- `$session-id` (`SessionId:D`)
- `%settings`

## tmux command

The tmux commands behind `open-control`.

- [`attach-session`](/en/tmux/latest/manual/attach-session/)
- [`refresh-client`](/en/tmux/latest/manual/refresh-client/) (new-layouts negotiation is enabled)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_attach_session_entry`](/en/tmux/latest/reference/c-variable-cmd_attach_session_entry/) (attribute)
- [`cmd_attach_session_exec`](/en/tmux/latest/reference/c-function-cmd-attach-session-c-cmd_attach_session_exec/) (function)
- [`cmd_refresh_client_entry`](/en/tmux/latest/reference/c-variable-cmd_refresh_client_entry/) (attribute)
- [`cmd_refresh_client_exec`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function)
