# libtmux._internal.control_mode.ControlMode.__enter__

- **Module:** libtmux._internal.control_mode.ControlMode
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/_internal/control_mode.py#L61
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-control_mode-controlmode-__enter__/

```
libtmux._internal.control_mode.ControlMode.__enter__(self) -> Self
```

Spawn control-mode client and wait for registration.
