# libtmux._internal.control_mode.ControlMode.__enter__

- **Module:** libtmux._internal.control_mode
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/_internal/control_mode.py#L59
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-_internal-control_mode-controlmode-__enter__/

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

Spawn control-mode client and wait for registration.
