# LibTmux.FSharp.Control.enter

- **Module:** LibTmux.FSharp
- **Package:** LibTmux.FSharp
- **Language:** F#
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.FSharp/Control.fsi#L30
- **Page:** https://libtmux.org/en/fsharp/latest/reference/libtmux-fsharp-control-enter/

```
val enter: cancellationToken: CancellationToken -> server: LibTmux.Server -> Task<IControlModeSession>
```

Opens a control client attached to the most recently used session.

The caller owns and asynchronously disposes the returned client. On a
server with several sessions, <c>enterSession</c> attaches to a chosen one.

## Parameters

- `cancellationToken` (`CancellationToken`)
- `server` (`LibTmux.Server`)
